registry

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 7 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 interface {
	GetRepos(ctx context.Context, opts ...Option) ([]string, error)
	GetRepoTags(ctx context.Context, repo string, opts ...Option) ([]string, error)
}

func NewV2Client

func NewV2Client(registry string, opts ...Option) (Client, error)

type Option

type Option func(*Options)

func WithInsecure

func WithInsecure(insecure bool) Option

func WithLoginByPassword

func WithLoginByPassword(username, password string) Option

func WithLoginByToken

func WithLoginByToken(token string) Option

type Options

type Options struct {
	Registry string
	Username string
	Password string
	Token    string
	Insecure bool
}

Jump to

Keyboard shortcuts

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