docker

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOpts

type BuildOpts struct {
	// https://docs.docker.com/engine/reference/commandline/build/
	Target     *string
	Pull       *bool
	NoCache    *bool
	File       *string
	Buildkit   *bool
	RawOptions *[]string
}

type Buildx

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

func NewBuildx

func NewBuildx(docker Docker, logger ctllog.Logger) Buildx

func (Buildx) BuildAndOptionallyPush

func (d Buildx) BuildAndOptionallyPush(
	image, directory string, imgDst *ctlconf.ImageDestination,
	opts ctlconf.SourceDockerBuildxOpts) (string, error)

BuildAndOptionallyPush either loads built image into Docker daemon or pushes it to specified registry.

type Docker

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

func New

func New(logger ctllog.Logger) Docker

func (Docker) Build

func (d Docker) Build(image, directory string, opts BuildOpts) (TmpRef, error)

func (Docker) Inspect

func (d Docker) Inspect(ref string) (InspectData, error)

func (Docker) Push

func (d Docker) Push(tmpRef TmpRef, imageDst string) (ImageDigest, error)

func (Docker) RetagStable

func (d Docker) RetagStable(tmpRef TmpRef, image, imageID string,
	prefixedLogger *ctllog.PrefixWriter) (TmpRef, error)

type ImageDigest

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

func (ImageDigest) AsString

func (r ImageDigest) AsString() string

type InspectData

type InspectData struct {
	ID          string
	RepoDigests []string
}

type TmpRef

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

func NewTmpRef

func NewTmpRef(val string) TmpRef

func (TmpRef) AsString

func (r TmpRef) AsString() string

Jump to

Keyboard shortcuts

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