client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a container image registry client to list tags of given image URLs.

func New

func New(ctx context.Context, log *logrus.Entry, opts Options) (*Client, error)

func (*Client) Tags

func (c *Client) Tags(ctx context.Context, imageURL string) ([]api.ImageTag, error)

Tags returns the full list of image tags available, for a given image URL.

type ImageClient

type ImageClient interface {
	// Returns the name of the client
	Name() string

	// IsHost will return true if this client is appropriate for the given
	// host.
	IsHost(host string) bool

	// RepoImage will return the registries repository and image, from a given
	// URL path.
	RepoImageFromPath(path string) (string, string)

	// Tags will return the available tags for the given host, repo, and image
	// using that client.
	Tags(ctx context.Context, host, repo, image string) ([]api.ImageTag, error)
}

ImageClient represents a image registry client that can list available tags for image URLs.

type Options

type Options struct {
	ACR        acr.Options
	ECR        ecr.Options
	GCR        gcr.Options
	Docker     docker.Options
	Quay       quay.Options
	Selfhosted map[string]*selfhosted.Options
}

Options used to configure client authentication.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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