Documentation
¶
Index ¶
- type GetPackageResponse
- type GetVersionsResponse
- type Provider
- func (p *Provider) Architecture() string
- func (p Provider) InstallationPath() string
- func (p *Provider) MarshalJSON() ([]byte, error)
- func (p *Provider) Namespace() string
- func (p *Provider) OperatingSystem() string
- func (p *Provider) ProviderType() string
- func (p *Provider) SetVersion(version string)
- func (p Provider) String() string
- func (p *Provider) ToOutputRow() []string
- func (p *Provider) Version() string
- type ProviderName
- type ProviderPlatform
- type ProviderVersion
- type ProviderVersions
- type Registry
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 (*Provider) Architecture ¶
func (Provider) InstallationPath ¶
func (*Provider) MarshalJSON ¶ added in v0.3.0
func (*Provider) OperatingSystem ¶
func (*Provider) ProviderType ¶
func (*Provider) SetVersion ¶ added in v0.2.0
func (*Provider) ToOutputRow ¶ added in v0.3.0
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
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 (p ProviderVersions) Last() *ProviderVersion
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 (*Registry) GetPackage ¶
func (r *Registry) GetPackage(provider *Provider) (*GetPackageResponse, error)
func (*Registry) GetVersions ¶
func (r *Registry) GetVersions(provider *Provider) (ProviderVersions, error)
Click to show internal directories.
Click to hide internal directories.