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
10 type Provider struct {
13 //---------------------------------------------------------------
14 // Metadata about the overall provider.
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"`
26 // ProviderDetail represents a Provider with full detail.
27 type ProviderDetail struct {
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.
35 Versions []string `json:"versions"` // All versions