client

package
v0.0.0-...-2c30e2a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Types

type DockerError

type DockerError struct {
	ErrorDetail string `json:"errorDetail"`
	Error       string `json:"error"`
}

type HubMirrorClient

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

func NewHubMirrorClient

func NewHubMirrorClient(ctx context.Context, opts ...Option) (*HubMirrorClient, error)

func (*HubMirrorClient) PullImage

func (c *HubMirrorClient) PullImage(ctx context.Context, image, platform string) error

func (*HubMirrorClient) PushImage

func (c *HubMirrorClient) PushImage(ctx context.Context, image, platform string) error

func (*HubMirrorClient) TagImage

func (c *HubMirrorClient) TagImage(ctx context.Context, source, target string) error

func (*HubMirrorClient) TransferImage

func (c *HubMirrorClient) TransferImage(ctx context.Context, mirror, platform string) (*TransferInfo, error)

type Option

type Option func(*HubMirrorClient)

func WithPassword

func WithPassword(password string) Option

func WithServer

func WithServer(server string) Option

func WithUsername

func WithUsername(username string) Option

func WithWriter

func WithWriter(writer io.Writer) Option

type TransferInfo

type TransferInfo struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

Jump to

Keyboard shortcuts

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