docker

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverDockerClient added in v0.0.9

func DiscoverDockerClient() (client.APIClient, error)

func EncodeAuthToBase64

func EncodeAuthToBase64(authConfig types.AuthConfig) (string, error)

EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload

func PushImage

func PushImage(ctx context.Context, targetUrl ImageUrl, targetAuth types.AuthConfig) error

Types

type ImageUrl

type ImageUrl struct {
	Registry string
	User     string
	Repo     string
	Tag      string
	Digest   string
}

ImageUrl provides a structured mechanism for dealing with docker Image URLs This is commonly used to alter a single section of the Image URL when deploying

func ParseImageUrl

func ParseImageUrl(raw string) ImageUrl

func (ImageUrl) String

func (u ImageUrl) String() string

func (*ImageUrl) UnmarshalJSON

func (u *ImageUrl) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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