Documentation ¶
Index ¶
- func Do()
- type DockerError
- type HubMirrorClient
- func (c *HubMirrorClient) PullImage(ctx context.Context, image, platform string) error
- func (c *HubMirrorClient) PushImage(ctx context.Context, image, platform string) error
- func (c *HubMirrorClient) TagImage(ctx context.Context, source, target string) error
- func (c *HubMirrorClient) TransferImage(ctx context.Context, mirror, platform string) (*TransferInfo, error)
- type Option
- type TransferInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerError ¶
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 WithServer ¶
func WithUsername ¶
func WithWriter ¶
type TransferInfo ¶
Click to show internal directories.
Click to hide internal directories.