docker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistryAuth

func GetRegistryAuth(user, token, url string) (string, error)

Types

type Client

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

func NewClient

func NewClient() (Client, error)

func (Client) ImagePull

func (c Client) ImagePull(registryAuth, image string) error

func (Client) ImagePush

func (c Client) ImagePush(registryAuth, image string) error

func (Client) ImageTag

func (c Client) ImageTag(image, tag string) error

func (Client) IsImagePulled

func (c Client) IsImagePulled(image string) (bool, error)

type Image

type Image struct {
	Registry   string
	Repository string
	Tag        string
}

func ToImage

func ToImage(image string) (Image, error)

func (Image) ECRRegistryAccount

func (i Image) ECRRegistryAccount() string

func (Image) ECRRegistryRegion

func (i Image) ECRRegistryRegion() string

func (Image) IsECRRegistry

func (i Image) IsECRRegistry() bool

func (Image) String

func (i Image) String() string

func (Image) ToECRImage

func (i Image) ToECRImage(awsAccount, awsRegion string) Image

Jump to

Keyboard shortcuts

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