docker_registry

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerHub = "dockerhub"
	Harbor    = "harbor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	Addr    string   // registry address, domain:port, ip:port, domain, etc
	Auth    string   // base64 encoding, for HTTP API Header: registry.AuthHeader
	Project []string // available projects
	Name    string   // identifier of current registry
	// contains filtered or unexported fields
}

func FromAuthConfig

func FromAuthConfig(authConfig registry.AuthConfig) (reg Registry)

func (*Registry) GetAuthConfig

func (r *Registry) GetAuthConfig() registry.AuthConfig

func (*Registry) WithName

func (r *Registry) WithName(name string) *Registry

func (*Registry) WithProject

func (r *Registry) WithProject(project ...string) *Registry

Jump to

Keyboard shortcuts

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