registry

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package registry implements the logic for interacting with a remote registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(client remote.Client) func(r *Registry)

WithClient sets the underlying HTTP client to be used for requests.

func WithPlainHTTP

func WithPlainHTTP(plainHTTP bool) func(r *Registry)

WithPlainHTTP specifies if requests should be done in plain http.

Types

type Registry

type Registry struct {
	*remote.Registry
}

Registry is an HTTP client to interact with a remote registry.

func NewRegistry

func NewRegistry(ref string, options ...func(*Registry)) (*Registry, error)

NewRegistry returns a new Registry.

Return an error if the given ref is not valid.

func (*Registry) CheckConnection

func (r *Registry) CheckConnection(ctx context.Context) error

CheckConnection checks whether the underlying HTTP client can correctly interact with the remote registry.

Jump to

Keyboard shortcuts

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