client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Client *client.Client
}

func Client

func Client(socket string) (Docker, error)

func (Docker) AllContainers

func (d Docker) AllContainers(ctx contexts.Context) ([]types.Container, error)

func (Docker) ContainerLogs

func (d Docker) ContainerLogs(ctx contexts.Context, id string) error

func (Docker) RemoveContainer

func (d Docker) RemoveContainer(ctx contexts.Context, id string) error

func (Docker) RunContainer

func (d Docker) RunContainer(ctx contexts.Context, image string, cmd []string, env []string, volumes []string) (string, error)

func (Docker) StartContainer

func (d Docker) StartContainer(ctx contexts.Context, id string) error

func (Docker) StopContainer

func (d Docker) StopContainer(ctx contexts.Context, id string) error

func (Docker) WaitForContainer

func (d Docker) WaitForContainer(ctx contexts.Context, name string, id string) error

Jump to

Keyboard shortcuts

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