github.com/opentofu/opentofu@v1.7.1/internal/registry/response/module_provider.go (about)

     1  // Copyright (c) The OpenTofu Authors
     2  // SPDX-License-Identifier: MPL-2.0
     3  // Copyright (c) 2023 HashiCorp, Inc.
     4  // SPDX-License-Identifier: MPL-2.0
     5  
     6  package response
     7  
     8  // ModuleProvider represents a single provider for modules.
     9  type ModuleProvider struct {
    10  	Name        string `json:"name"`
    11  	Downloads   int    `json:"downloads"`
    12  	ModuleCount int    `json:"module_count"`
    13  }
    14  
    15  // ModuleProviderList is the response structure for a pageable list of ModuleProviders.
    16  type ModuleProviderList struct {
    17  	Meta      PaginationMeta    `json:"meta"`
    18  	Providers []*ModuleProvider `json:"providers"`
    19  }