Documentation ¶
Index ¶
- type Modules
- func (s *Modules) Get(ctx context.Context, namespace, name, provider, version string) (*apiv1.Module, error)
- func (s *Modules) LatestVersionForSpecificProvider(ctx context.Context, namespace, name, provider string) (*apiv1.Module, error)
- func (s *Modules) List(ctx context.Context, opt *apiv1.ListOptions, namespace string) (*apiv1.ModuleList, error)
- func (s *Modules) ListAvailableVersions(ctx context.Context, namespace, name, provider string) (*apiv1.VersionList, error)
- func (s *Modules) ListLatestVersionForAllProviders(ctx context.Context, opt *apiv1.ListLatestVersionOptions, ...) (*apiv1.ModuleList, error)
- func (s *Modules) Search(ctx context.Context, opt *apiv1.SearchOptions) (*apiv1.ModuleList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Modules ¶
type Modules struct {
// contains filtered or unexported fields
}
func NewModulesService ¶
func NewModulesService(client *resty.Client) *Modules
func (*Modules) Get ¶
func (s *Modules) Get(ctx context.Context, namespace, name, provider, version string) (*apiv1.Module, error)
Get a Specific Module https://developer.hashicorp.com/terraform/registry/api-docs#get-a-specific-module
func (*Modules) LatestVersionForSpecificProvider ¶
func (s *Modules) LatestVersionForSpecificProvider(ctx context.Context, namespace, name, provider string) (*apiv1.Module, error)
LatestVersionForSpecificProvider Latest Version of Module for Specific Provider https://developer.hashicorp.com/terraform/registry/api-docs#latest-version-for-a-specific-module-provider
func (*Modules) List ¶
func (s *Modules) List(ctx context.Context, opt *apiv1.ListOptions, namespace string) (*apiv1.ModuleList, error)
List Modules https://developer.hashicorp.com/terraform/registry/api-docs#list-modules
func (*Modules) ListAvailableVersions ¶
func (s *Modules) ListAvailableVersions(ctx context.Context, namespace, name, provider string) (*apiv1.VersionList, error)
ListAvailableVersions List Available Versions for a Specific Module https://developer.hashicorp.com/terraform/registry/api-docs#list-available-versions-for-a-specific-module
func (*Modules) ListLatestVersionForAllProviders ¶
func (s *Modules) ListLatestVersionForAllProviders(ctx context.Context, opt *apiv1.ListLatestVersionOptions, namespace, name string) (*apiv1.ModuleList, error)
ListLatestVersionForAllProviders List Latest Version of Module for All Providers https://developer.hashicorp.com/terraform/registry/api-docs#list-latest-version-of-module-for-all-providers
func (*Modules) Search ¶
func (s *Modules) Search(ctx context.Context, opt *apiv1.SearchOptions) (*apiv1.ModuleList, error)
Search Modules https://developer.hashicorp.com/terraform/registry/api-docs#search-modules