tc

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

View Source
const TcNetworkBin = "chaos_tcnetwork"

TcNetworkBin for network delay, loss, duplicate, reorder and corrupt experiments

Variables

This section is empty.

Functions

func NewCorruptActionSpec

func NewCorruptActionSpec() spec.ExpActionCommandSpec

func NewDelayActionSpec

func NewDelayActionSpec() spec.ExpActionCommandSpec

func NewDuplicateActionSpec

func NewDuplicateActionSpec() spec.ExpActionCommandSpec

func NewLossActionSpec

func NewLossActionSpec() spec.ExpActionCommandSpec

func NewReorderActionSpec

func NewReorderActionSpec() spec.ExpActionCommandSpec

Types

type CorruptActionSpec

type CorruptActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*CorruptActionSpec) Aliases

func (*CorruptActionSpec) Aliases() []string

func (*CorruptActionSpec) LongDesc

func (c *CorruptActionSpec) LongDesc() string

func (*CorruptActionSpec) Name

func (*CorruptActionSpec) Name() string

func (*CorruptActionSpec) ShortDesc

func (*CorruptActionSpec) ShortDesc() string

type DelayActionSpec

type DelayActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*DelayActionSpec) Aliases

func (*DelayActionSpec) Aliases() []string

func (*DelayActionSpec) LongDesc

func (d *DelayActionSpec) LongDesc() string

func (*DelayActionSpec) Name

func (*DelayActionSpec) Name() string

func (*DelayActionSpec) ShortDesc

func (*DelayActionSpec) ShortDesc() string

type DuplicateActionSpec

type DuplicateActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*DuplicateActionSpec) Aliases

func (*DuplicateActionSpec) Aliases() []string

func (*DuplicateActionSpec) LongDesc

func (d *DuplicateActionSpec) LongDesc() string

func (*DuplicateActionSpec) Name

func (*DuplicateActionSpec) Name() string

func (*DuplicateActionSpec) ShortDesc

func (*DuplicateActionSpec) ShortDesc() string

type LossActionSpec

type LossActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*LossActionSpec) Aliases

func (*LossActionSpec) Aliases() []string

func (*LossActionSpec) LongDesc

func (l *LossActionSpec) LongDesc() string

func (*LossActionSpec) Name

func (*LossActionSpec) Name() string

func (*LossActionSpec) ShortDesc

func (*LossActionSpec) ShortDesc() string

type NetworkCorruptExecutor

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

func (*NetworkCorruptExecutor) Exec

func (ce *NetworkCorruptExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*NetworkCorruptExecutor) Name

func (ce *NetworkCorruptExecutor) Name() string

func (*NetworkCorruptExecutor) SetChannel

func (ce *NetworkCorruptExecutor) SetChannel(channel spec.Channel)

type NetworkDelayExecutor

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

func (*NetworkDelayExecutor) Exec

func (de *NetworkDelayExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*NetworkDelayExecutor) Name

func (de *NetworkDelayExecutor) Name() string

func (*NetworkDelayExecutor) SetChannel

func (de *NetworkDelayExecutor) SetChannel(channel spec.Channel)

type NetworkDuplicateExecutor

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

func (*NetworkDuplicateExecutor) Exec

func (*NetworkDuplicateExecutor) Name

func (de *NetworkDuplicateExecutor) Name() string

func (*NetworkDuplicateExecutor) SetChannel

func (de *NetworkDuplicateExecutor) SetChannel(channel spec.Channel)

type NetworkLossExecutor

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

func (*NetworkLossExecutor) Exec

func (nle *NetworkLossExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*NetworkLossExecutor) Name

func (*NetworkLossExecutor) Name() string

func (*NetworkLossExecutor) SetChannel

func (nle *NetworkLossExecutor) SetChannel(channel spec.Channel)

type NetworkReorderExecutor

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

func (*NetworkReorderExecutor) Exec

func (ce *NetworkReorderExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*NetworkReorderExecutor) Name

func (ce *NetworkReorderExecutor) Name() string

func (*NetworkReorderExecutor) SetChannel

func (ce *NetworkReorderExecutor) SetChannel(channel spec.Channel)

type ReorderActionSpec

type ReorderActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*ReorderActionSpec) Aliases

func (*ReorderActionSpec) Aliases() []string

func (*ReorderActionSpec) LongDesc

func (r *ReorderActionSpec) LongDesc() string

func (*ReorderActionSpec) Name

func (*ReorderActionSpec) Name() string

func (*ReorderActionSpec) ShortDesc

func (*ReorderActionSpec) ShortDesc() string

Jump to

Keyboard shortcuts

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