dockerClient

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

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

func New

func New(config config.Config, ctx context.Context, wg *sync.WaitGroup) (client *DockerClient, err error)

func (*DockerClient) ContainerExists

func (this *DockerClient) ContainerExists(id string) (exists bool, err error)

func (*DockerClient) CreateContainer

func (this *DockerClient) CreateContainer(name string, image string, env map[string]string, restart bool, _ string, _ string) (id string, err error)

func (*DockerClient) Disconnect

func (this *DockerClient) Disconnect() (err error)

func (*DockerClient) RemoveContainer

func (this *DockerClient) RemoveContainer(id string) (err error)

func (*DockerClient) UpdateContainer

func (this *DockerClient) UpdateContainer(id string, name string, image string, env map[string]string, restart bool, userid string, importTypeId string) (newId string, err error)

Jump to

Keyboard shortcuts

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