docker

package
v0.0.0-...-9b386c2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: 0BSD Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(dockerfilePath string, dockerTag string)

Building docker image Refer to https://stackoverflow.com/questions/38804313/build-docker-image-from-go-code

func GetAuthToken

func GetAuthToken(registry DockerRegistry) (*string, *string)

Docker Login Only supports ECR Login at this point in time. https://docs.aws.amazon.com/sdk-for-go/api/

func GetContext

func GetContext(filePath string) io.Reader

Build the Docker Context. Essentially, Docker uses Tar file as the context.

func PullImage

func PullImage(imageName string)

Pull a docker image provided as an argument.

func PushImage

func PushImage(imageName string, tag string)

Thank you Justin Wilson for your comment on https://forums.docker.com/t/how-to-create-registryauth-for-private-registry-login-credentials/29235/2

Types

type DockerRegistry

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

Jump to

Keyboard shortcuts

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