process

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 8

Documentation

Index

Constants

View Source
const KillProcessBin = "chaos_killprocess"
View Source
const ProcessLoadBin = "chaos_processload"
View Source
const StopProcessBin = "chaos_stopprocess"

Variables

This section is empty.

Functions

func NewKillProcessActionCommandSpec

func NewKillProcessActionCommandSpec() spec.ExpActionCommandSpec

func NewProcessCommandModelSpec

func NewProcessCommandModelSpec() spec.ExpModelCommandSpec

func NewProcessLoadActionCommandSpec added in v1.7.4

func NewProcessLoadActionCommandSpec() spec.ExpActionCommandSpec

func NewStopProcessActionCommandSpec

func NewStopProcessActionCommandSpec() spec.ExpActionCommandSpec

Types

type KillProcessActionCommandSpec

type KillProcessActionCommandSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*KillProcessActionCommandSpec) Aliases

func (*KillProcessActionCommandSpec) Aliases() []string

func (*KillProcessActionCommandSpec) Categories

func (*KillProcessActionCommandSpec) Categories() []string

func (*KillProcessActionCommandSpec) LongDesc

func (k *KillProcessActionCommandSpec) LongDesc() string

func (*KillProcessActionCommandSpec) Name

func (*KillProcessActionCommandSpec) ShortDesc

func (*KillProcessActionCommandSpec) ShortDesc() string

type KillProcessExecutor

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

func (*KillProcessExecutor) Exec

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

func (*KillProcessExecutor) Name

func (kpe *KillProcessExecutor) Name() string

func (*KillProcessExecutor) SetChannel

func (kpe *KillProcessExecutor) SetChannel(channel spec.Channel)

type ProcessCommandModelSpec

type ProcessCommandModelSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*ProcessCommandModelSpec) LongDesc

func (*ProcessCommandModelSpec) LongDesc() string

func (*ProcessCommandModelSpec) Name

func (*ProcessCommandModelSpec) ShortDesc

func (*ProcessCommandModelSpec) ShortDesc() string

type ProcessLoadActionCommandSpec added in v1.7.4

type ProcessLoadActionCommandSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*ProcessLoadActionCommandSpec) Aliases added in v1.7.4

func (*ProcessLoadActionCommandSpec) Aliases() []string

func (*ProcessLoadActionCommandSpec) Categories added in v1.7.4

func (*ProcessLoadActionCommandSpec) Categories() []string

func (*ProcessLoadActionCommandSpec) LongDesc added in v1.7.4

func (l *ProcessLoadActionCommandSpec) LongDesc() string

func (*ProcessLoadActionCommandSpec) Name added in v1.7.4

func (*ProcessLoadActionCommandSpec) ShortDesc added in v1.7.4

func (*ProcessLoadActionCommandSpec) ShortDesc() string

type ProcessLoadExecutor added in v1.7.4

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

func (*ProcessLoadExecutor) Exec added in v1.7.4

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

func (*ProcessLoadExecutor) Name added in v1.7.4

func (pl *ProcessLoadExecutor) Name() string

func (*ProcessLoadExecutor) SetChannel added in v1.7.4

func (pl *ProcessLoadExecutor) SetChannel(channel spec.Channel)

type StopProcessActionCommandSpec

type StopProcessActionCommandSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*StopProcessActionCommandSpec) Aliases

func (*StopProcessActionCommandSpec) Aliases() []string

func (*StopProcessActionCommandSpec) LongDesc

func (s *StopProcessActionCommandSpec) LongDesc() string

func (*StopProcessActionCommandSpec) Name

func (*StopProcessActionCommandSpec) ShortDesc

func (*StopProcessActionCommandSpec) ShortDesc() string

type StopProcessExecutor

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

func (*StopProcessExecutor) Exec

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

func (*StopProcessExecutor) Name

func (spe *StopProcessExecutor) Name() string

func (*StopProcessExecutor) SetChannel

func (spe *StopProcessExecutor) SetChannel(channel spec.Channel)

Jump to

Keyboard shortcuts

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