providerdata

package
v0.0.0-...-998e4dc Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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