oci

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: 9 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 {
	*Options
	// contains filtered or unexported fields
}

Client is a client for a registry compatible with the OCI Distribution Spec

func New

func New(opts *Options) (*Client, error)

New returns a new client

func (*Client) IsHost

func (c *Client) IsHost(_ string) bool

IsHost always returns true because it supports any host

func (*Client) Name

func (c *Client) Name() string

Name is the name of this client

func (*Client) RepoImageFromPath

func (c *Client) RepoImageFromPath(path string) (string, string)

RepoImageFromPath splits a repository path into 'repo' and 'image' segments

func (*Client) Tags

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

Tags lists all the tags in the specified repository

type Options added in v0.9.0

type Options struct {
	Transporter http.RoundTripper
	Auth        *authn.AuthConfig
}

func (*Options) Authorization added in v0.9.0

func (o *Options) Authorization() (*authn.AuthConfig, error)

Jump to

Keyboard shortcuts

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