Documentation ¶
Index ¶
- type ControllerDocker
- func (r *ControllerDocker) Close() error
- func (r *ControllerDocker) ContainerExec(containerId string, cmd []string) error
- func (r *ControllerDocker) Contains(imageTag string) (bool, error)
- func (r *ControllerDocker) ListContainerIds() ([]string, error)
- func (r *ControllerDocker) ListTags() ([]string, error)
- func (r *ControllerDocker) ReStart(containerId string) error
- func (r *ControllerDocker) Remove(containerId string) error
- func (r *ControllerDocker) Resume(containerId string) error
- func (r *ControllerDocker) StartContainer(imageTag, containerName, runtime, workDir, imagePullPolicy string, ...) (*docker.ContainerInformation, error)
- func (r *ControllerDocker) Stop(containerId string) error
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
Click to show internal directories.
Click to hide internal directories.