diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/hashicorp/terraform/registry/response/provider.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/registry/response/provider.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/registry/response/provider.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/registry/response/provider.go b/vendor/github.com/hashicorp/terraform/registry/response/provider.go new file mode 100644 index 0000000..5e8bae3 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/registry/response/provider.go | |||
@@ -0,0 +1,36 @@ | |||
1 | package response | ||
2 | |||
3 | import ( | ||
4 | "time" | ||
5 | ) | ||
6 | |||
7 | // Provider is the response structure with the data for a single provider | ||
8 | // version. This is just the metadata. A full provider response will be | ||
9 | // ProviderDetail. | ||
10 | type Provider struct { | ||
11 | ID string `json:"id"` | ||
12 | |||
13 | //--------------------------------------------------------------- | ||
14 | // Metadata about the overall provider. | ||
15 | |||
16 | Owner string `json:"owner"` | ||
17 | Namespace string `json:"namespace"` | ||
18 | Name string `json:"name"` | ||
19 | Version string `json:"version"` | ||
20 | Description string `json:"description"` | ||
21 | Source string `json:"source"` | ||
22 | PublishedAt time.Time `json:"published_at"` | ||
23 | Downloads int `json:"downloads"` | ||
24 | } | ||
25 | |||
26 | // ProviderDetail represents a Provider with full detail. | ||
27 | type ProviderDetail struct { | ||
28 | Provider | ||
29 | |||
30 | //--------------------------------------------------------------- | ||
31 | // The fields below are only set when requesting this specific | ||
32 | // module. They are available to easily know all available versions | ||
33 | // without multiple API calls. | ||
34 | |||
35 | Versions []string `json:"versions"` // All versions | ||
36 | } | ||