Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) IsHost(_ string) bool
- func (c *Client) Manifests(ctx context.Context, repo name.Repository, tags []string) (fulltags []api.ImageTag, err error)
- func (c *Client) Name() string
- func (c *Client) RepoImageFromPath(path string) (string, string)
- func (c *Client) Tags(ctx context.Context, host, repo, image string) ([]api.ImageTag, error)
- type Options
Constants ¶
View Source
const ( CreatedTimeAnnotation = "org.opencontainers.image.created" BuildDateAnnotation = "org.label-schema.build-date" )
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 (*Client) RepoImageFromPath ¶
RepoImageFromPath splits a repository path into 'repo' and 'image' segments
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)
Click to show internal directories.
Click to hide internal directories.