Documentation ¶
Index ¶
- Constants
- func NewExecCommand(client container.Client, params *chaos.GlobalParams, command string, limit int) chaos.Command
- func NewKillCommand(client container.Client, params *chaos.GlobalParams, signal string, limit int) (chaos.Command, error)
- func NewPauseCommand(client container.Client, params *chaos.GlobalParams, duration time.Duration, ...) chaos.Command
- func NewRemoveCommand(client container.Client, params *chaos.GlobalParams, ...) chaos.Command
- func NewRestartCommand(client container.Client, params *chaos.GlobalParams, timeout time.Duration, ...) chaos.Command
- func NewStopCommand(client container.Client, params *chaos.GlobalParams, restart bool, ...) chaos.Command
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.