docker

package
v1.2.252 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 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 added in v1.2.223

func ClaimTargetPlatforms(claimPlatforms []string)

func CliBuild_LiveOutput

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

func CliBuild_LiveOutputWithCustomIn added in v1.2.2

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

func CliCreate

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

func CliManifest added in v1.2.223

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 added in v1.2.26

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 ContainerAttach added in v1.2.1

func ContainerAttach(ctx context.Context, ref string, options types.ContainerAttachOptions) (types.HijackedResponse, 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 added in v1.2.215

func GetDefaultPlatform() string

func GetDockerConfigCredentialsFile added in v1.2.175

func GetDockerConfigCredentialsFile(configDir string) string

func GetRuntimePlatform added in v1.2.215

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 added in v1.1.36

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

func Init

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

func IsContext added in v1.1.23

func IsContext(ctx context.Context) bool

func IsEnabled added in v1.1.36

func IsEnabled() bool

func Login

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

func NewBuildxCommand added in v1.2.220

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

func NewContext added in v1.1.23

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

func NewInfoFromInspect added in v1.2.236

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

func ServerVersion

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

func SyncContextCliWithLogger added in v1.1.23

func SyncContextCliWithLogger(ctx context.Context) error

func VolumeRm

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

Types

type BuildOptions added in v1.2.220

type BuildOptions struct {
	EnableBuildx bool
}

type CreateImageOptions added in v1.2.223

type CreateImageOptions struct {
	Labels []string
}

type InitOptions added in v1.2.215

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