docker

package
v0.0.0-...-036f8e8 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DeafultWaitTime time to wait before stopping container (in seconds)
	DeafultWaitTime = 5
)
View Source
const (
	// DefaultKillSignal default kill signal
	DefaultKillSignal = "SIGKILL"
)

Variables

This section is empty.

Functions

func NewExecCommand

func NewExecCommand(client container.Client, params *chaos.GlobalParams, command string, limit int) chaos.Command

NewExecCommand create new Exec Command instance

func NewKillCommand

func NewKillCommand(client container.Client, params *chaos.GlobalParams, signal string, limit int) (chaos.Command, error)

NewKillCommand create new Kill Command instance

func NewPauseCommand

func NewPauseCommand(client container.Client, params *chaos.GlobalParams, duration time.Duration, limit int) chaos.Command

NewPauseCommand create new Pause Command instance

func NewRemoveCommand

func NewRemoveCommand(client container.Client, params *chaos.GlobalParams, force, links, volumes bool, limit int) chaos.Command

NewRemoveCommand create new Kill Command instance

func NewRestartCommand

func NewRestartCommand(client container.Client, params *chaos.GlobalParams, timeout time.Duration, limit int) chaos.Command

NewRestartCommand create new Restart Command instance

func NewStopCommand

func NewStopCommand(client container.Client, params *chaos.GlobalParams, restart bool, duration time.Duration, waitTime, limit int) chaos.Command

NewStopCommand create new Stop Command instance

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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