terraform

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPackageResponse

type GetPackageResponse struct {
	Protocols           []string `json:"protocols"`
	OS                  string   `json:"os"`
	Arch                string   `json:"arch"`
	Filename            string   `json:"filename"`
	DownloadURL         string   `json:"download_url"`
	SHASumsURL          string   `json:"shasums_url"`
	SHASumsSignatureURL string   `json:"shasums_signature_url"`
	SHASum              string   `json:"shasum"`
	SigningKeys         struct {
		GPGPublicKeys []struct {
			KeyID          string `json:"key_id"`
			ASCIIArmor     string `json:"ascii_armor"`
			TrustSignature string `json:"trust_signature"`
			Source         string `json:"source"`
			SourceURL      string `json:"source_url"`
		} `json:"gpg_public_keys"`
	} `json:"signing_keys"`
}

type GetVersionsResponse

type GetVersionsResponse struct {
	Versions ProviderVersions `json:"versions"`
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(name *ProviderName, os, arch string) *Provider

func ParseProviderFromPath

func ParseProviderFromPath(path string) (*Provider, error)

func (*Provider) Architecture

func (p *Provider) Architecture() string

func (Provider) InstallationPath

func (p Provider) InstallationPath() string

func (*Provider) MarshalJSON added in v0.3.0

func (p *Provider) MarshalJSON() ([]byte, error)

func (*Provider) Namespace

func (p *Provider) Namespace() string

func (*Provider) OperatingSystem

func (p *Provider) OperatingSystem() string

func (*Provider) ProviderType

func (p *Provider) ProviderType() string

func (*Provider) SetVersion added in v0.2.0

func (p *Provider) SetVersion(version string)

func (Provider) String

func (p Provider) String() string

func (*Provider) ToOutputRow added in v0.3.0

func (p *Provider) ToOutputRow() []string

func (*Provider) Version

func (p *Provider) Version() string

type ProviderName

type ProviderName struct {
	// contains filtered or unexported fields
}

func NewProviderName

func NewProviderName(namespace, providerType, version string) *ProviderName

func ParseProviderName

func ParseProviderName(s string) (*ProviderName, error)

type ProviderPlatform added in v0.2.0

type ProviderPlatform struct {
	OS   string `json:"os"`
	Arch string `json:"arch"`
}

func (ProviderPlatform) String added in v0.2.0

func (p ProviderPlatform) String() string

type ProviderVersion added in v0.2.0

type ProviderVersion struct {
	Version   string             `json:"version"`
	Protocols []string           `json:"protocols"`
	Platforms []ProviderPlatform `json:"platforms"`
}

func (ProviderVersion) SemanticVersion added in v0.2.0

func (p ProviderVersion) SemanticVersion() (version *semver.Version, err error)

func (ProviderVersion) String added in v0.2.0

func (p ProviderVersion) String() string

type ProviderVersions added in v0.2.0

type ProviderVersions []*ProviderVersion

func (ProviderVersions) Last added in v0.2.0

func (ProviderVersions) Len added in v0.2.0

func (p ProviderVersions) Len() int

func (ProviderVersions) Less added in v0.2.0

func (p ProviderVersions) Less(i, j int) bool

func (ProviderVersions) Swap added in v0.2.0

func (p ProviderVersions) Swap(i, j int)

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(hostname string) *Registry

func (*Registry) GetPackage

func (r *Registry) GetPackage(provider *Provider) (*GetPackageResponse, error)

func (*Registry) GetVersions

func (r *Registry) GetVersions(provider *Provider) (ProviderVersions, error)

func (Registry) String

func (r Registry) String() string

Jump to

Keyboard shortcuts

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