docker

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DockerConfigDir string
)

Functions

func ClaimTargetPlatforms

func ClaimTargetPlatforms(claimPlatforms []string)

func CliBuild_LiveOutput

func CliBuild_LiveOutput(ctx context.Context, args ...string) error

func CliBuild_LiveOutputWithCustomIn

func CliBuild_LiveOutputWithCustomIn(ctx context.Context, rc io.ReadCloser, args ...string) error

func CliCreate

func CliCreate(ctx context.Context, args ...string) error

func CliManifest

func CliManifest(ctx context.Context, args ...string) error

func CliPull

func CliPull(ctx context.Context, args ...string) error

func CliPullWithRetries

func CliPullWithRetries(ctx context.Context, args ...string) error

func CliPushWithRetries

func CliPushWithRetries(ctx context.Context, args ...string) error

func CliRm

func CliRm(ctx context.Context, args ...string) error

func CliRm_RecordedOutput

func CliRm_RecordedOutput(ctx context.Context, args ...string) (string, error)

func CliRmi

func CliRmi(ctx context.Context, args ...string) error

func CliRmi_LiveOutput

func CliRmi_LiveOutput(ctx context.Context, args ...string) error

func CliRun

func CliRun(ctx context.Context, args ...string) error

func CliRun_LiveOutput

func CliRun_LiveOutput(ctx context.Context, args ...string) error

func CliRun_ProvidedOutput

func CliRun_ProvidedOutput(ctx context.Context, stdoutWriter, stderrWriter io.Writer, args ...string) error

func CliRun_RecordedOutput

func CliRun_RecordedOutput(ctx context.Context, args ...string) (string, error)

func CliTag

func CliTag(ctx context.Context, args ...string) error

func ContainerCommit

func ContainerCommit(ctx context.Context, ref string, commitOptions types.ContainerCommitOptions) (string, error)

func ContainerExist

func ContainerExist(ctx context.Context, ref string) (bool, error)

func ContainerInspect

func ContainerInspect(ctx context.Context, ref string) (types.ContainerJSON, error)

func ContainerRemove

func ContainerRemove(ctx context.Context, ref string, options types.ContainerRemoveOptions) error

func Containers

func Containers(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)

func CreateImage

func CreateImage(ctx context.Context, ref string, opts CreateImageOptions) error

func GetDefaultPlatform

func GetDefaultPlatform() string

func GetDockerConfigCredentialsFile

func GetDockerConfigCredentialsFile(configDir string) string

func GetRuntimePlatform

func GetRuntimePlatform() string

func ImageExist

func ImageExist(ctx context.Context, ref string) (bool, error)

func ImageInspect

func ImageInspect(ctx context.Context, ref string) (*types.ImageInspect, error)

func Images

func Images(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)

func Info

func Info(ctx context.Context) (types.Info, error)

func Init

func Init(ctx context.Context, opts InitOptions) error

func IsContext

func IsContext(ctx context.Context) bool

func IsEnabled

func IsEnabled() bool

func Login

func Login(ctx context.Context, username, password, repo string) error

func NewBuildxCommand

func NewBuildxCommand(dockerCli command.Cli) *cobra.Command

func NewContext

func NewContext(ctx context.Context) (context.Context, error)

func NewInfoFromInspect

func NewInfoFromInspect(ref string, inspect *types.ImageInspect) *image.Info

func ServerVersion

func ServerVersion(ctx context.Context) (*types.Version, error)

func SyncContextCliWithLogger

func SyncContextCliWithLogger(ctx context.Context) error

func VolumeRm

func VolumeRm(ctx context.Context, volumeName string, force bool) error

Types

type BuildOptions

type BuildOptions struct {
	EnableBuildx bool
}

type CreateImageOptions

type CreateImageOptions struct {
	Labels []string
}

type InitOptions

type InitOptions struct {
	DockerConfigDir string
	DefaultPlatform string
	ClaimPlatforms  []string
	Verbose         bool
	Debug           bool
}

Jump to

Keyboard shortcuts

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