docker

package
v0.0.0-...-ed847e1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageNameWithoutRequiredDigest = errors.New("the image name must contain an digest \"REPO[:TAG]@DIGEST\" (e.g. \"ubuntu:18.04@sha256:538529c9d229fb55f50e6746b119e899775205d62c0fc1b7e679b30d02ecb6e8\")")

Functions

func DisplayFromImageBuildResponse

func DisplayFromImageBuildResponse(w io.Writer, response types.ImageBuildResponse) error

func GenerateAndAddDockerfileToTar

func GenerateAndAddDockerfileToTar(tw *tar.Writer, dockerfileTarPath, fromImage string, runCommands []string, dockerfileOpts DockerfileOpts) error

func ReadTarFromImageBuildResponse

func ReadTarFromImageBuildResponse(tarWriter io.Writer, buildLogWriter io.Writer, response types.ImageBuildResponse) error

func RemoveImagesByLabels

func RemoveImagesByLabels(ctx context.Context, cli *client.Client, labels map[string]string) error

func ValidateImageNameWithDigest

func ValidateImageNameWithDigest(imageName string) error

Types

type DockerfileOpts

type DockerfileOpts struct {
	ContainerSourceDir    string
	ContainerArtifactsDir string
	WithArtifacts         bool
	EnvVars               map[string]string
	Labels                map[string]string
}

Jump to

Keyboard shortcuts

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