models

package
v0.57.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	RegistryName string
	Namespace    string
	Name         string
	Version      string
	OS           string
	Arch         string

	DownloadURL *url.URL
}

Provider represents the details of the Terraform provider.

func (*Provider) Filename

func (provider *Provider) Filename() string

func (*Provider) Match

func (provider *Provider) Match(target *Provider) bool

Match returns true if all defined provider properties are matched.

func (*Provider) Path

func (provider *Provider) Path() string

func (*Provider) Platform

func (provider *Provider) Platform() string

func (*Provider) PlatformURL

func (provider *Provider) PlatformURL() *url.URL

PlatformURL returns the URL used to query the all platforms for a single version. https://developer.hashicorp.com/terraform/cloud-docs/api-docs/private-registry/provider-versions-platforms#get-all-platforms-for-a-single-version

func (*Provider) String

func (provider *Provider) String() string

func (*Provider) VersionURL

func (provider *Provider) VersionURL() *url.URL

VersionURL returns the URL used to query the all Versions for a single provider. https://developer.hashicorp.com/terraform/cloud-docs/api-docs/private-registry/provider-versions-platforms#get-all-versions-for-a-single-provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL