docker

package
v0.0.0-...-4c42442 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachContainer

func AttachContainer(
	client *client.Client,
	containerId string,
) (types.HijackedResponse, error)

func CreateContainer

func CreateContainer(
	client *client.Client,
	image string,
	env map[string]string,
	mnt []mount.Mount,
) (container.CreateResponse, error)

func CreateVolume

func CreateVolume(client *client.Client, name string) (volume.Volume, error)

func ImageExists

func ImageExists(client *client.Client, name string) (bool, error)

func PullImage

func PullImage(client *client.Client, name string) error

func PullImageAuthenticated

func PullImageAuthenticated(
	client *client.Client,
	name string,
	auth registry.AuthConfig,
) error

func ReadLogs

func ReadLogs(
	client *client.Client,
	containerId string,
) (io.ReadCloser, error)

func StartContainer

func StartContainer(
	client *client.Client,
	containerId string,
) error

func VolumeExists

func VolumeExists(client *client.Client, name string) (bool, error)

Types

type Client

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

Jump to

Keyboard shortcuts

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