registry

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT, BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCRScopes = []string{"https://www.googleapis.com/auth/cloud-platform"}

Functions

func New

func New(ctx context.Context, dockerHost, username, password string, logger util.Logger) (*registry, error)

func NewBasicTransport added in v1.0.5

func NewBasicTransport(host, username, password string, next http.RoundTripper) *basicTransport

func NewTokenTransport added in v1.0.5

func NewTokenTransport(username, password string, next *http.Transport) *tokenTransport

Types

type AuthorizationChallenge

type AuthorizationChallenge struct {
	Scheme     string
	Parameters map[string]string
}

AuthorizationChallenge carries information from a WWW-Authenticate response header.

type Registry

type Registry interface {
	ManifestDigest(name string, tag string) (string, error)
}

Jump to

Keyboard shortcuts

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