ghcr

package
v0.9.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostRegTempl = `^(containers\.[a-zA-Z0-9-]+\.ghe\.com|ghcr\.io)$`
)

Variables

Functions

This section is empty.

Types

type Client

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

func New

func New(opts Options) *Client

func (*Client) IsHost

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

func (*Client) Name

func (c *Client) Name() string

func (*Client) RepoImageFromPath

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

func (*Client) Tags

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

type Options

type Options struct {
	Token       string
	Hostname    string
	Transporter http.RoundTripper
}

Jump to

Keyboard shortcuts

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