Documentation ¶
Index ¶
- type ProviderData
- type RegistryClient
- func (client RegistryClient) GetDownloadData(namespace string, providerType string, version string, os string, arch string) (schema.DownloadData, error)
- func (client RegistryClient) ListVersions(namespace string, providerType string) (schema.ProviderVersions, error)
- func (client RegistryClient) Proxy(namespace string, providerType string, version string, filename string) (schema.ProxyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderData ¶
type ProviderData interface { ListVersions(namespace string, providerType string) (schema.ProviderVersions, error) GetDownloadData(namespace string, providerType string, version string, os string, arch string) (schema.DownloadData, error) Proxy(namespace string, providerType string, version string, os string) (schema.ProxyResponse, error) }
type RegistryClient ¶
type RegistryClient struct {
// contains filtered or unexported fields
}
func NewS3Backend ¶
func NewS3Backend(bucket s3.BucketReaderWriter, hostname string) (RegistryClient, error)
func (RegistryClient) GetDownloadData ¶
func (client RegistryClient) GetDownloadData(namespace string, providerType string, version string, os string, arch string) (schema.DownloadData, error)
func (RegistryClient) ListVersions ¶
func (client RegistryClient) ListVersions(namespace string, providerType string) (schema.ProviderVersions, error)
func (RegistryClient) Proxy ¶
func (client RegistryClient) Proxy(namespace string, providerType string, version string, filename string) (schema.ProxyResponse, error)
Click to show internal directories.
Click to hide internal directories.