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
}
Docker returns docker client
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 ¶
RegistryConfig holds the config for docker registry
func (RegistryConfig) GetAuthConfig ¶
func (c RegistryConfig) GetAuthConfig() types.AuthConfig
GetAuthConfig returns the docker registry authConfig
func (RegistryConfig) GetRegistryAuth ¶
func (c RegistryConfig) GetRegistryAuth() (string, error)
GetRegistryAuth returns the json encoded docker registry auth
Click to show internal directories.
Click to hide internal directories.