client

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 15 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 ClientHandler added in v0.9.0

type ClientHandler interface {
	Tags(ctx context.Context, imageURL string) ([]api.ImageTag, error)
}

Used for testing/mocking purposes

type Options

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

	Transport http.RoundTripper
}

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