registry

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email,omitifempty"`
	Auth     string `json:"auth,omitifempty"`
}

Credentials represent the required credentials to authenticate against a Docker registry

type Registry

type Registry struct {
	Endpoint string
	Version  string
	Creds    Credentials
}

Registry struct represents a Docker Registry

func New

func New(config v1.Secret) (*Registry, error)

New returns a Registry struct parsing its URL and storing the required credentials

func (*Registry) ImageExists

func (r *Registry) ImageExists(id, tag string) (bool, error)

ImageExists checks if a certain image:tag exists in the registry

Jump to

Keyboard shortcuts

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