remote

package
v0.0.0-...-c87bc11 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Bucket is the bucket to fetch from.
	Bucket string

	// Server is the GCS-like storage server
	Server string

	// Log allows us to log.
	Log logr.Logger

	// Insecure uses http for testing
	Insecure bool
}

Client is a basic client for fetching versions of the envtest binary archives from GCS.

func (*Client) FetchSum

func (c *Client) FetchSum(ctx context.Context, ver versions.Concrete, pl *versions.PlatformItem) error

FetchSum fetches the checksum for the given concrete version & platform into the given platform item.

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, version versions.Concrete, platform versions.PlatformItem, out io.Writer) error

GetVersion downloads the given concrete version for the given concrete platform, writing it to the out.

func (*Client) ListVersions

func (c *Client) ListVersions(ctx context.Context) ([]versions.Set, error)

ListVersions lists all available tools versions in the given bucket, along with supported os/arch combos and the corresponding hash.

The results are sorted with newer versions first.

Jump to

Keyboard shortcuts

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