docker

package
v0.0.0-...-98462bc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMorePages = errors.New("no more pages")

Functions

func Log

func Log(format string, args ...interface{})

* Pass log messages along to Go's "log" module.

Types

type LogfCallback

type LogfCallback func(format string, args ...interface{})

type Registry

type Registry struct {
	URL    string
	Client *http.Client
	Logf   LogfCallback
}

func New

func New(registryURL, username, password string) *Registry

* Create a new Registry with the given URL and credentials, then Ping()s it * before returning it to verify that the registry is available. * * You can, alternately, construct a Registry manually by populating the fields. * This passes http.DefaultTransport to WrapTransport when creating the * http.Client.

func NewInsecure

func NewInsecure(registryURL, username, password string) *Registry

* Create a new Registry, as with New, using an http.Transport that disables * SSL certificate verification.

func (*Registry) ManifestDigest

func (r *Registry) ManifestDigest(repository, reference string) (digest.Digest, error)

ManifestDigest - get manifest digest

func (*Registry) Ping

func (r *Registry) Ping() error

func (*Registry) Tags

func (r *Registry) Tags(repository string) (tags []string, err error)

Jump to

Keyboard shortcuts

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