registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func RetagImage

func RetagImage(repo, tag, srcRegistry, dstRegistry string) error

Types

type Config

type Config struct {
	Credentials Credentials
	Name        string
	HttpClient  http.Client
}

type Credentials

type Credentials struct {
	User     string
	Password string
}

type Registry

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

func New

func New(c Config) (Registry, error)

func (*Registry) ListRepositoryTags

func (r *Registry) ListRepositoryTags(repo string) ([]string, error)

func (*Registry) Login

func (r *Registry) Login() error

func (*Registry) Logout

func (r *Registry) Logout() error

func (*Registry) PullImage

func (r *Registry) PullImage(repo, tag string) error

func (*Registry) PushImage

func (r *Registry) PushImage(repo, tag string) error

func (*Registry) RemoveImage

func (r *Registry) RemoveImage(repo, tag string) error

func (*Registry) RepositoryTagExists

func (r *Registry) RepositoryTagExists(repo, tag string) (bool, error)

type Repository

type Repository struct {
	Name string
	Tags []string
}

Jump to

Keyboard shortcuts

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