docker

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, dockerClient client.APIClient, container string, config types.ExecConfig) error

func GetContainerByName added in v0.3.0

func GetContainerByName(ctx context.Context, name string, dockerClient client.APIClient, listOptions types.ContainerListOptions) (*types.Container, error)

func GetDockerClient

func GetDockerClient() (*dockerClient.Client, error)

func GetOneContainer

func GetOneContainer(ctx context.Context, dockerClient client.APIClient, listOptions types.ContainerListOptions) (*types.Container, error)

func IsUsingPort added in v0.3.0

func IsUsingPort(container *types.Container, port uint16) bool

Types

type AuxBody

type AuxBody struct {
	ID string
}

type AuxMessage

type AuxMessage struct {
	Aux AuxBody `json:"aux"`
}

func BuildDir

func BuildDir(ctx context.Context, client *dockerClient.Client, path string, buildOpts types.ImageBuildOptions) (*AuxMessage, error)

type ErrorMessage

type ErrorMessage struct {
	ErrorStr string
}

func (ErrorMessage) Error

func (e ErrorMessage) Error() string

Jump to

Keyboard shortcuts

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