client

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.76.0

func New(host string, opts ...registryClient.Option) registry.Client

New creates a new wrapped internal registry client with options. It mirrors the public pkg registry client builder style.

func NewClientFromWrapped added in v1.76.0

func NewClientFromWrapped(wrapped *registryClient.Client) registry.Client

NewClientFromWrapped retains old behavior for explicit wrapping from an existing low-level client.

func NewFromRegistryClient added in v1.76.0

func NewFromRegistryClient(c registry.Client) registry.Client

NewFromRegistryClient wraps any registry.Client as an internal registry Interface. This is useful for testing with fake or mock implementations of registry.Client.

Types

type Client

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

Client is a wrapper around the underlying registry client, adding tracing support.

func (*Client) CheckImageExists

func (c *Client) CheckImageExists(ctx context.Context, ref string) error

func (*Client) CopyImage added in v1.76.0

func (c *Client) CopyImage(ctx context.Context, srcTag string, dest registry.Client, destTag string) error

func (*Client) DeleteByDigest added in v1.76.0

func (c *Client) DeleteByDigest(ctx context.Context, digest v1.Hash) error

func (*Client) DeleteTag added in v1.76.0

func (c *Client) DeleteTag(ctx context.Context, tag string) error

func (*Client) GetDigest

func (c *Client) GetDigest(ctx context.Context, ref string) (*v1.Hash, error)

func (*Client) GetImage

func (c *Client) GetImage(ctx context.Context, ref string, opts ...registry.ImageGetOption) (registry.Image, error)

func (*Client) GetImageConfig

func (c *Client) GetImageConfig(ctx context.Context, ref string) (*v1.ConfigFile, error)

func (*Client) GetManifest

func (c *Client) GetManifest(ctx context.Context, ref string) (registry.ManifestResult, error)

func (*Client) GetRegistry

func (c *Client) GetRegistry() string

func (*Client) ListRepositories

func (c *Client) ListRepositories(ctx context.Context, opts ...registry.ListRepositoriesOption) ([]string, error)

func (*Client) ListTags

func (c *Client) ListTags(ctx context.Context, opts ...registry.ListTagsOption) ([]string, error)

func (*Client) PushImage

func (c *Client) PushImage(ctx context.Context, ref string, img v1.Image, opts ...registry.ImagePushOption) error

func (*Client) PushIndex added in v1.76.0

func (c *Client) PushIndex(ctx context.Context, tag string, idx v1.ImageIndex, opts ...registry.ImagePushOption) error

func (*Client) TagImage added in v1.76.0

func (c *Client) TagImage(ctx context.Context, sourceTag, destTag string) error

func (*Client) WithSegment

func (c *Client) WithSegment(segments ...string) registry.Client

Jump to

Keyboard shortcuts

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