github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/registry/response/module_provider.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package response 5 6 // ModuleProvider represents a single provider for modules. 7 type ModuleProvider struct { 8 Name string `json:"name"` 9 Downloads int `json:"downloads"` 10 ModuleCount int `json:"module_count"` 11 } 12 13 // ModuleProviderList is the response structure for a pageable list of ModuleProviders. 14 type ModuleProviderList struct { 15 Meta PaginationMeta `json:"meta"` 16 Providers []*ModuleProvider `json:"providers"` 17 }