network

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DropNetworkBin = "chaos_dropnetwork"

Variables

View Source
var OccupyNetworkBin = "chaos_occupynetwork"

Functions

func NewDnsActionSpec

func NewDnsActionSpec() spec.ExpActionCommandSpec

func NewDropActionSpec

func NewDropActionSpec() spec.ExpActionCommandSpec

func NewNetworkCommandSpec

func NewNetworkCommandSpec() spec.ExpModelCommandSpec

func NewOccupyActionSpec

func NewOccupyActionSpec() spec.ExpActionCommandSpec

Types

type DnsActionSpec

type DnsActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*DnsActionSpec) Aliases

func (*DnsActionSpec) Aliases() []string

func (*DnsActionSpec) LongDesc

func (d *DnsActionSpec) LongDesc() string

func (*DnsActionSpec) Name

func (*DnsActionSpec) Name() string

func (*DnsActionSpec) ShortDesc

func (*DnsActionSpec) ShortDesc() string

type DropActionSpec

type DropActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*DropActionSpec) Aliases

func (*DropActionSpec) Aliases() []string

func (*DropActionSpec) LongDesc

func (d *DropActionSpec) LongDesc() string

func (*DropActionSpec) Name

func (*DropActionSpec) Name() string

func (*DropActionSpec) ShortDesc

func (*DropActionSpec) ShortDesc() string

type NetworkCommandSpec

type NetworkCommandSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*NetworkCommandSpec) LongDesc

func (*NetworkCommandSpec) LongDesc() string

func (*NetworkCommandSpec) Name

func (*NetworkCommandSpec) Name() string

func (*NetworkCommandSpec) ShortDesc

func (*NetworkCommandSpec) ShortDesc() string

type NetworkDnsExecutor

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

func (*NetworkDnsExecutor) Exec

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

func (*NetworkDnsExecutor) Name

func (*NetworkDnsExecutor) Name() string

func (*NetworkDnsExecutor) SetChannel

func (ns *NetworkDnsExecutor) SetChannel(channel spec.Channel)

type NetworkDropExecutor

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

func (*NetworkDropExecutor) Exec

func (ne *NetworkDropExecutor) Exec(suid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*NetworkDropExecutor) Name

func (*NetworkDropExecutor) Name() string

func (*NetworkDropExecutor) SetChannel

func (ne *NetworkDropExecutor) SetChannel(channel spec.Channel)

type OccupyActionExecutor

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

func (*OccupyActionExecutor) Exec

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

func (*OccupyActionExecutor) Name

func (*OccupyActionExecutor) Name() string

func (*OccupyActionExecutor) SetChannel

func (oae *OccupyActionExecutor) SetChannel(channel spec.Channel)

type OccupyActionSpec

type OccupyActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*OccupyActionSpec) Aliases

func (*OccupyActionSpec) Aliases() []string

func (*OccupyActionSpec) LongDesc

func (o *OccupyActionSpec) LongDesc() string

func (*OccupyActionSpec) Name

func (*OccupyActionSpec) Name() string

func (*OccupyActionSpec) ShortDesc

func (*OccupyActionSpec) ShortDesc() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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