registry

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateRepository(string) error
	RepositoryExists() bool
	CopyImage() error
	PullImage() error
	PutImage() error
	ImageExists(ref string) bool

	// Endpoint returns the domain of the registry
	Endpoint() string
	Credentials() string
}

Client provides methods required to be implemented by the various target registry clients, e.g. ECR, Docker, Quay.

type ECRClient

type ECRClient struct {
	// contains filtered or unexported fields
}

func NewECRClient

func NewECRClient(region string, ecrDomain string) (*ECRClient, error)

func (*ECRClient) CopyImage

func (e *ECRClient) CopyImage() error

func (*ECRClient) CreateRepository

func (e *ECRClient) CreateRepository(name string) error

func (*ECRClient) Credentials

func (e *ECRClient) Credentials() string

func (*ECRClient) Endpoint

func (e *ECRClient) Endpoint() string

func (*ECRClient) ImageExists

func (e *ECRClient) ImageExists(ref string) bool

func (*ECRClient) PullImage

func (e *ECRClient) PullImage() error

func (*ECRClient) PutImage

func (e *ECRClient) PutImage() error

func (*ECRClient) RepositoryExists

func (e *ECRClient) RepositoryExists() bool

Jump to

Keyboard shortcuts

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