remote

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry(hostname string, opts *options.NetworkOptions) (*remote.Registry, error)

NewRegistry returns a new *remote.Registry for hostname, with credentials and TLS configured.

func NewRepository

func NewRepository(ctx context.Context, hostname, repository string, opts *options.NetworkOptions) (registry.Repository, error)

Types

type Repository

type Repository struct {
	registry.Repository
	Reference registry.Reference
	PlainHttp bool
	Client    remote.Client
}

func (*Repository) Push

func (r *Repository) Push(ctx context.Context, expected ocispec.Descriptor, content io.Reader) error

Push pushes the content, matching the expected descriptor.

Jump to

Keyboard shortcuts

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