models

package
v0.57.10 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 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

	Protocols []string `json:"protocols"`
	Filename  string   `json:"filename"`

	DownloadURL            string `json:"download_url"`
	SHA256SumsURL          string `json:"shasums_url"`
	SHA256SumsSignatureURL string `json:"shasums_signature_url"`

	SHA256Sum   string         `json:"shasum"`
	SigningKeys SigningKeyList `json:"signing_keys"`
}

Provider represents the details of the Terraform provider.

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

type SigningKeyList added in v0.57.9

type SigningKeyList struct {
	GPGPublicKeys []*provider.SigningKey `json:"gpg_public_keys"`
}

Jump to

Keyboard shortcuts

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