controller_docker

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerDocker

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

func NewControllerDocker

func NewControllerDocker(ctx context.Context, controller docker.Controller) (*ControllerDocker, error)

func (*ControllerDocker) Close

func (r *ControllerDocker) Close() error

func (*ControllerDocker) ContainerExec

func (r *ControllerDocker) ContainerExec(containerId string, cmd []string) error

func (*ControllerDocker) Contains

func (r *ControllerDocker) Contains(imageTag string) (bool, error)

func (*ControllerDocker) ListContainerIds

func (r *ControllerDocker) ListContainerIds() ([]string, error)

func (*ControllerDocker) ListTags

func (r *ControllerDocker) ListTags() ([]string, error)

func (*ControllerDocker) ReStart

func (r *ControllerDocker) ReStart(containerId string) error

func (*ControllerDocker) Remove

func (r *ControllerDocker) Remove(containerId string) error

func (*ControllerDocker) Resume

func (r *ControllerDocker) Resume(containerId string) error

func (*ControllerDocker) StartContainer

func (r *ControllerDocker) StartContainer(imageTag, containerName, runtime, workDir, imagePullPolicy string, envs, ports, lifecycle, livenessProbe, readinessProbe, reasources, securityContext, volumeMounts map[string]string, cmds, terminationMessagePath, terminationMessagePolicy []string) (*docker.ContainerInformation, error)

func (*ControllerDocker) Stop

func (r *ControllerDocker) Stop(containerId string) error

Jump to

Keyboard shortcuts

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