Documentation
¶
Index ¶
- func New(host string, opts ...registryClient.Option) registry.Client
- func NewClientFromWrapped(wrapped *registryClient.Client) registry.Client
- func NewFromRegistryClient(c registry.Client) registry.Client
- type Client
- func (c *Client) CheckImageExists(ctx context.Context, ref string) error
- func (c *Client) CopyImage(ctx context.Context, srcTag string, dest registry.Client, destTag string) error
- func (c *Client) DeleteByDigest(ctx context.Context, digest v1.Hash) error
- func (c *Client) DeleteTag(ctx context.Context, tag string) error
- func (c *Client) GetDigest(ctx context.Context, ref string) (*v1.Hash, error)
- func (c *Client) GetImage(ctx context.Context, ref string, opts ...registry.ImageGetOption) (registry.Image, error)
- func (c *Client) GetImageConfig(ctx context.Context, ref string) (*v1.ConfigFile, error)
- func (c *Client) GetManifest(ctx context.Context, ref string) (registry.ManifestResult, error)
- func (c *Client) GetRegistry() string
- func (c *Client) ListRepositories(ctx context.Context, opts ...registry.ListRepositoriesOption) ([]string, error)
- func (c *Client) ListTags(ctx context.Context, opts ...registry.ListTagsOption) ([]string, error)
- func (c *Client) PushImage(ctx context.Context, ref string, img v1.Image, ...) error
- func (c *Client) PushIndex(ctx context.Context, tag string, idx v1.ImageIndex, ...) error
- func (c *Client) TagImage(ctx context.Context, sourceTag, destTag string) error
- func (c *Client) WithSegment(segments ...string) registry.Client
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.
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 (*Client) DeleteByDigest ¶ added in v1.76.0
func (*Client) GetImageConfig ¶
func (*Client) GetManifest ¶
func (*Client) GetRegistry ¶
func (*Client) ListRepositories ¶
func (*Client) PushIndex ¶ added in v1.76.0
func (c *Client) PushIndex(ctx context.Context, tag string, idx v1.ImageIndex, opts ...registry.ImagePushOption) error
Click to show internal directories.
Click to hide internal directories.