github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/registry/response/provider.go (about) 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 }