Documentation ¶
Index ¶
- func LoadFromBucket(bucket *storage.BucketHandle, prefix string) (filenames []string)
- type BinaryMetaData
- type BinaryMetaDataList
- type GpgSigningKey
- type Platform
- type PlatformList
- type ProtocolList
- type ProviderVersion
- type ProviderVersionList
- type ProviderVersions
- func (l *ProviderVersions) Add(meta *BinaryMetaData)
- func (p *ProviderVersions) AddOrUpdateProviderVersion(v ProviderVersion)
- func (p *ProviderVersions) AddProviderVersion(v ProviderVersion)
- func (p *ProviderVersions) FindVersion(version string) *ProviderVersion
- func (p *ProviderVersions) Merge(o ProviderVersions)
- type SemVer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromBucket ¶
func LoadFromBucket(bucket *storage.BucketHandle, prefix string) (filenames []string)
Types ¶
type BinaryMetaData ¶
type BinaryMetaData 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 []GpgSigningKey `json:"gpg_public_keys"` } `json:"signing_keys"` Version string `json:"-"` TypeName string `json:"-"` }
func MakeFromFileName ¶
func (*BinaryMetaData) Equals ¶
func (l *BinaryMetaData) Equals(o *BinaryMetaData) bool
func (*BinaryMetaData) Platform ¶
func (m *BinaryMetaData) Platform() Platform
type BinaryMetaDataList ¶
type BinaryMetaDataList []BinaryMetaData
func CreateFromFileList ¶
func CreateFromFileList(files []string, baseURL string, signingKey signing_key.PGPSigningKey, shasums map[string]string, protocols []string) BinaryMetaDataList
func (BinaryMetaDataList) ExtractVersions ¶
func (l BinaryMetaDataList) ExtractVersions() map[string]*ProviderVersions
func (BinaryMetaDataList) SetPGPSigningKey ¶
func (l BinaryMetaDataList) SetPGPSigningKey(signingKey signing_key.PGPSigningKey)
type GpgSigningKey ¶
type PlatformList ¶
type PlatformList []Platform
func (PlatformList) Len ¶
func (a PlatformList) Len() int
func (PlatformList) Less ¶
func (a PlatformList) Less(i, j int) bool
func (PlatformList) Swap ¶
func (a PlatformList) Swap(i, j int)
type ProtocolList ¶
type ProtocolList []string
func (ProtocolList) Len ¶
func (a ProtocolList) Len() int
func (ProtocolList) Less ¶
func (a ProtocolList) Less(i, j int) bool
func (ProtocolList) Swap ¶
func (a ProtocolList) Swap(i, j int)
type ProviderVersion ¶
type ProviderVersion struct { Version string `json:"version"` Protocols []string `json:"protocols"` Platforms []Platform `json:"platforms"` }
func (*ProviderVersion) AddPlatform ¶
func (v *ProviderVersion) AddPlatform(platform Platform)
func (*ProviderVersion) AddPlatforms ¶
func (v *ProviderVersion) AddPlatforms(platforms []Platform)
func (*ProviderVersion) AddProtocol ¶
func (v *ProviderVersion) AddProtocol(protocol string)
func (*ProviderVersion) AddProtocols ¶
func (v *ProviderVersion) AddProtocols(protocols []string)
func (ProviderVersion) GetSemVer ¶
func (v ProviderVersion) GetSemVer() SemVer
type ProviderVersionList ¶
type ProviderVersionList []ProviderVersion
func (ProviderVersionList) Len ¶
func (a ProviderVersionList) Len() int
func (ProviderVersionList) Less ¶
func (a ProviderVersionList) Less(i, j int) bool
func (ProviderVersionList) Swap ¶
func (a ProviderVersionList) Swap(i, j int)
type ProviderVersions ¶
type ProviderVersions struct {
Versions []ProviderVersion `json:"versions"`
}
func (*ProviderVersions) Add ¶
func (l *ProviderVersions) Add(meta *BinaryMetaData)
func (*ProviderVersions) AddOrUpdateProviderVersion ¶
func (p *ProviderVersions) AddOrUpdateProviderVersion(v ProviderVersion)
func (*ProviderVersions) AddProviderVersion ¶
func (p *ProviderVersions) AddProviderVersion(v ProviderVersion)
func (*ProviderVersions) FindVersion ¶
func (p *ProviderVersions) FindVersion(version string) *ProviderVersion
func (*ProviderVersions) Merge ¶
func (p *ProviderVersions) Merge(o ProviderVersions)
Click to show internal directories.
Click to hide internal directories.