docker

package
v1.40.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyDockerIsAvailable

func VerifyDockerIsAvailable() error

Types

type Docker

type Docker struct {
	*client.Client
}

func New

func New() (*Docker, error)

func (*Docker) Build

func (d *Docker) Build(dockerfile, srcPath, imageTag string, buildArgs map[string]string, excludes []string, buildLogger io.Writer) error

func (*Docker) ContainerCreate

func (d *Docker) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, name string) (string, error)

func (*Docker) ImagePull

func (d *Docker) ImagePull(rawImage string, opts types.ImagePullOptions) error

func (*Docker) RemoveByLabel

func (d *Docker) RemoveByLabel(labels map[string]string) error

func (*Docker) Version

func (d *Docker) Version() string

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

type Line

type Line struct {
	Stream string `json:"stream"`
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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