docker

package
v0.0.0-...-d2b4888 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

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

func New

func New() (Docker, error)

func (Docker) Login

func (d Docker) Login(conf RegistryConfig) error

func (Docker) Logout

func (d Docker) Logout(conf RegistryConfig) error

func (Docker) ReplicateImage

func (d Docker) ReplicateImage(ctx context.Context, imageRef, imagePath string, dest RegistryConfig) error

ReplicateImage tags the given imagePath and pushes it to the given dest registry.

type RegistryConfig

type RegistryConfig struct {
	URL      *url.URL
	Username string
	Password string
}

func (RegistryConfig) GetAuthConfig

func (c RegistryConfig) GetAuthConfig() types.AuthConfig

func (RegistryConfig) GetBasicAuthorization

func (c RegistryConfig) GetBasicAuthorization() string

func (RegistryConfig) GetRegistryAuth

func (c RegistryConfig) GetRegistryAuth() (string, error)

Jump to

Keyboard shortcuts

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