-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from enthought/add-repository-resource
Add repository resource and data source
- Loading branch information
Showing
14 changed files
with
972 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "quay_repository Data Source - quay" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# quay_repository (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "quay_organization" "main" { | ||
name = "main" | ||
} | ||
data "quay_repository" "test" { | ||
name = "test" | ||
namespace = data.quay_organization.main.name | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Repository name | ||
- `namespace` (String) Repository namespace. Should be an organization name or username | ||
|
||
### Read-Only | ||
|
||
- `description` (String) Markdown description | ||
- `visibility` (String) Repository visibility. Should be private or public. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "quay_repository Resource - quay" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# quay_repository (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "quay_organization" "main" { | ||
name = "main" | ||
email = "[email protected]" | ||
} | ||
resource "quay_repository" "test" { | ||
name = "test" | ||
namespace = quay_organization.main.name | ||
visibility = "private" | ||
description = "test" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Repository name | ||
- `namespace` (String) Repository namespace. Should be an organization name or username | ||
|
||
### Optional | ||
|
||
- `description` (String) Markdown description | ||
- `visibility` (String) Repository visibility. Should be private or public. Defaults to private. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# An organization can be imported using its name. | ||
terraform import quay_repository.test main/test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
data "quay_organization" "main" { | ||
name = "main" | ||
} | ||
|
||
data "quay_repository" "test" { | ||
name = "test" | ||
namespace = data.quay_organization.main.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# An organization can be imported using its name. | ||
terraform import quay_repository.test main/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
resource "quay_organization" "main" { | ||
name = "main" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "quay_repository" "test" { | ||
name = "test" | ||
namespace = quay_organization.main.name | ||
visibility = "private" | ||
description = "test" | ||
} |
44 changes: 44 additions & 0 deletions
44
internal/datasource_repository/repository_data_source_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.