registry

package
v0.0.0-...-dcdd9e4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// LoginServer is the registry login server name, such as myregistry.azurecr.io
	LoginServer string

	// DataEndpoint is the registry data endpoint, such as myregistry.southindia.azurecr.io
	DataEndpoint string

	// Username is the registry login username
	Username string

	// Password is the registry login password
	Password string

	// Insecure indicates if registry should be accessed over HTTP
	Insecure bool

	// BasicAuthMode indicates that only basic auth should be used
	BasicAuthMode bool

	Repository string
}

Options configures the proxy.

type Proxy

type Proxy struct {
	*Options
	zerolog.Logger
	// contains filtered or unexported fields
}

Proxy acts as a proxy to a remote registry.

func NewProxy

func NewProxy(opts *Options, logger zerolog.Logger) (*Proxy, error)

NewProxy creates a new registry proxy.

func (Proxy) GenerateOCIArtifacts

func (p Proxy) GenerateOCIArtifacts(ctx context.Context) error

func (Proxy) GenerateOCIIndex

func (p Proxy) GenerateOCIIndex(ctx context.Context, hasMediaType bool) error

PushOCIIndex pushes an OCI Index to the registry

Jump to

Keyboard shortcuts

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