oci

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

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

func New

func New() (*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

Jump to

Keyboard shortcuts

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