process

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const KillProcessBin = "chaos_killprocess"
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 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 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