Documentation ¶
Index ¶
- func NewOptionalTimeoutCh(timeoutStr string) (<-chan time.Time, error)
- func NonLocalIfaceNames() ([]string, error)
- func OptionsType(taskOpts Options) string
- type ControlNetOptions
- type ControlNetTask
- type FillDiskOptions
- type FillDiskTask
- type FirewallOptions
- type FirewallTask
- type FirewallTaskDest
- type KillOptions
- type KillProcessOptions
- type KillProcessTask
- type NoopOptions
- type NoopTask
- type Options
- type OptionsSlice
- type Repo
- type ResultRequest
- type ShutdownOptions
- type ShutdownTask
- type State
- type StateRequest
- type StateResponse
- type StressOptions
- type StressTask
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NonLocalIfaceNames ¶
func OptionsType ¶
Types ¶
type ControlNetOptions ¶
type ControlNetOptions struct { Type string Timeout string // Times may be suffixed with ms,s,m,h // slow: tc qdisc add dev eth0 root netem delay 50ms 10ms distribution normal Delay string DelayVariation string // flaky: tc qdisc add dev eth0 root netem loss 20% 75% Loss string LossCorrelation string }
See http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
type ControlNetTask ¶
type ControlNetTask struct {
// contains filtered or unexported fields
}
func NewControlNetTask ¶
func NewControlNetTask(cmdRunner boshsys.CmdRunner, opts ControlNetOptions, _ boshlog.Logger) ControlNetTask
func (ControlNetTask) Execute ¶
func (t ControlNetTask) Execute(stopCh chan struct{}) error
type FillDiskOptions ¶
type FillDiskTask ¶
type FillDiskTask struct {
// contains filtered or unexported fields
}
func NewFillDiskTask ¶
func NewFillDiskTask(cmdRunner boshsys.CmdRunner, opts FillDiskOptions, _ boshlog.Logger) FillDiskTask
func (FillDiskTask) Execute ¶
func (t FillDiskTask) Execute(stopCh chan struct{}) error
type FirewallOptions ¶
type FirewallTask ¶
type FirewallTask struct {
// contains filtered or unexported fields
}
func NewFirewallTask ¶
func NewFirewallTask( cmdRunner boshsys.CmdRunner, opts FirewallOptions, allowedOutputDest []FirewallTaskDest, _ boshlog.Logger, ) FirewallTask
func (FirewallTask) Execute ¶
func (t FirewallTask) Execute(stopCh chan struct{}) error
type FirewallTaskDest ¶
type KillProcessOptions ¶
type KillProcessTask ¶
type KillProcessTask struct {
// contains filtered or unexported fields
}
func NewKillProcessTask ¶
func NewKillProcessTask( monitClient monit.Client, cmdRunner boshsys.CmdRunner, opts KillProcessOptions, logger boshlog.Logger, ) KillProcessTask
func (KillProcessTask) Execute ¶
func (t KillProcessTask) Execute(stopCh chan struct{}) error
type NoopOptions ¶
type NoopTask ¶
type NoopTask struct {
// contains filtered or unexported fields
}
func NewNoopTask ¶
func NewNoopTask(opts NoopOptions) NoopTask
type OptionsSlice ¶
type OptionsSlice []Options
func (OptionsSlice) MarshalJSON ¶
func (s OptionsSlice) MarshalJSON() ([]byte, error)
func (*OptionsSlice) UnmarshalJSON ¶
func (s *OptionsSlice) UnmarshalJSON(data []byte) error
type Repo ¶
type ResultRequest ¶
type ResultRequest struct {
Error string
}
type ShutdownOptions ¶
type ShutdownTask ¶
type ShutdownTask struct {
// contains filtered or unexported fields
}
func NewShutdownTask ¶
func NewShutdownTask(cmdRunner boshsys.CmdRunner, opts ShutdownOptions, _ boshlog.Logger) ShutdownTask
func (ShutdownTask) Execute ¶
func (t ShutdownTask) Execute(_ chan struct{}) error
type StateRequest ¶
type StateRequest struct {
Stop bool
}
type StateResponse ¶
type StateResponse struct {
Stop bool
}
type StressOptions ¶
type StressTask ¶
type StressTask struct {
// contains filtered or unexported fields
}
func NewStressTask ¶
func NewStressTask(cmdRunner boshsys.CmdRunner, opts StressOptions, logger boshlog.Logger) StressTask
func (StressTask) Execute ¶
func (t StressTask) Execute(stopCh chan struct{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.