exec

package
v0.8.1-0...-40ec86c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultInstallPath = "/opt/chaosblade"
	BladeBin           = "blade"
	DefaultSSHPort     = 22
	BladeReleaseURL    = "http://nginxfile.dds-sysu.tech:8080/%s/chaosblade-%s.tar.gz"
)
View Source
const AddFileBin = "chaos_addfile"
View Source
const AppendFileBin = "chaos_appendfile"
View Source
const BurnCpuBin = "chaos_burncpu"
View Source
const BurnIOBin = "chaos_burnio"
View Source
const BurnMemBin = "chaos_burnmem"
View Source
const ChmodFileBin = "chaos_chmodfile"
View Source
const DeleteFileBin = "chaos_deletefile"
View Source
const DropNetworkBin = "chaos_dropnetwork"
View Source
const FillDiskBin = "chaos_filldisk"
View Source
const KillProcessBin = "chaos_killprocess"
View Source
const MoveFileBin = "chaos_movefile"
View Source
const StopProcessBin = "chaos_stopprocess"
View Source
const StraceDelayBin = "chaos_stracedelay"
View Source
const StraceErrorBin = "chaos_straceerror"
View Source
const TcNetworkBin = "chaos_tcnetwork"

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

Variables

View Source
var BladeRelease = &spec.ExpFlag{
	Name:     "blade-release",
	Desc:     "Blade release package,use this flag when the channel is ssh",
	NoArgs:   false,
	Required: false,
}
View Source
var ChannelFlag = &spec.ExpFlag{
	Name:     "channel",
	Desc:     "Select the channel for execution, and you can now select SSH",
	NoArgs:   false,
	Required: false,
}

support ssh channel flags

View Source
var InstallPath = &spec.ExpFlag{
	Name:     "install-path",
	Desc:     "install path default /opt/chaosblade,use this flag when the channel is ssh",
	NoArgs:   false,
	Required: false,
}
View Source
var OccupyNetworkBin = "chaos_occupynetwork"
View Source
var OverrideBladeRelease = &spec.ExpFlag{
	Name:     "override-blade-release",
	Desc:     "Override blade release,use this flag when the channel is ssh",
	NoArgs:   true,
	Required: false,
}
View Source
var SSHHostFlag = &spec.ExpFlag{
	Name:     "ssh-host",
	Desc:     "Use this flag when the channel is ssh",
	NoArgs:   false,
	Required: false,
}
View Source
var SSHKeyFlag = &spec.ExpFlag{
	Name:     "ssh-key",
	Desc:     "Use this flag when the channel is ssh",
	NoArgs:   false,
	Required: false,
}
View Source
var SSHKeyPassphraseFlag = &spec.ExpFlag{
	Name:     "ssh-key-passphrase",
	Desc:     "Use this flag when the channel is ssh",
	NoArgs:   true,
	Required: false,
}
View Source
var SSHPortFlag = &spec.ExpFlag{
	Name:     "ssh-port",
	Desc:     "Use this flag when the channel is ssh",
	NoArgs:   false,
	Required: false,
}
View Source
var SSHUserFlag = &spec.ExpFlag{
	Name:     "ssh-user",
	Desc:     "Use this flag when the channel is ssh",
	NoArgs:   false,
	Required: false,
}

Functions

func ConvertOutputToResponse

func ConvertOutputToResponse(output string, err error, defaultResponse *spec.Response) *spec.Response

func NewBurnActionSpec

func NewBurnActionSpec() spec.ExpActionCommandSpec

func NewCorruptActionSpec

func NewCorruptActionSpec() spec.ExpActionCommandSpec

func NewCpuCommandModelSpec

func NewCpuCommandModelSpec() spec.ExpModelCommandSpec

func NewDelayActionSpec

func NewDelayActionSpec() spec.ExpActionCommandSpec

func NewDiskCommandSpec

func NewDiskCommandSpec() spec.ExpModelCommandSpec

func NewDnsActionSpec

func NewDnsActionSpec() spec.ExpActionCommandSpec

func NewDropActionSpec

func NewDropActionSpec() spec.ExpActionCommandSpec

func NewDuplicateActionSpec

func NewDuplicateActionSpec() spec.ExpActionCommandSpec

func NewFileAddActionSpec

func NewFileAddActionSpec() spec.ExpActionCommandSpec

func NewFileAppendActionSpec

func NewFileAppendActionSpec() spec.ExpActionCommandSpec

func NewFileChmodActionSpec

func NewFileChmodActionSpec() spec.ExpActionCommandSpec

func NewFileCommandSpec

func NewFileCommandSpec() spec.ExpModelCommandSpec

func NewFileDeleteActionSpec

func NewFileDeleteActionSpec() spec.ExpActionCommandSpec

func NewFileMoveActionSpec

func NewFileMoveActionSpec() spec.ExpActionCommandSpec

func NewFillActionSpec

func NewFillActionSpec() spec.ExpActionCommandSpec

func NewKernelInjectCommandSpec

func NewKernelInjectCommandSpec() spec.ExpModelCommandSpec

func NewKillProcessActionCommandSpec

func NewKillProcessActionCommandSpec() spec.ExpActionCommandSpec

func NewLossActionSpec

func NewLossActionSpec() spec.ExpActionCommandSpec

func NewMemCommandModelSpec

func NewMemCommandModelSpec() spec.ExpModelCommandSpec

func NewNetworkCommandSpec

func NewNetworkCommandSpec() spec.ExpModelCommandSpec

func NewOccupyActionSpec

func NewOccupyActionSpec() spec.ExpActionCommandSpec

func NewProcessCommandModelSpec

func NewProcessCommandModelSpec() spec.ExpModelCommandSpec

func NewReorderActionSpec

func NewReorderActionSpec() spec.ExpActionCommandSpec

func NewSSHExecutor

func NewSSHExecutor() spec.Executor

func NewScriptCommandModelSpec

func NewScriptCommandModelSpec() spec.ExpModelCommandSpec

func NewScriptDelayActionCommand

func NewScriptDelayActionCommand() spec.ExpActionCommandSpec

func NewScriptExitActionCommand

func NewScriptExitActionCommand() spec.ExpActionCommandSpec

func NewStopProcessActionCommandSpec

func NewStopProcessActionCommandSpec() spec.ExpActionCommandSpec

func NewStraceDelayActionSpec

func NewStraceDelayActionSpec() spec.ExpActionCommandSpec

func NewStraceErrorActionSpec

func NewStraceErrorActionSpec() spec.ExpActionCommandSpec

Types

type BurnActionSpec

type BurnActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*BurnActionSpec) Aliases

func (*BurnActionSpec) Aliases() []string

func (*BurnActionSpec) LongDesc

func (b *BurnActionSpec) LongDesc() string

func (*BurnActionSpec) Name

func (*BurnActionSpec) Name() string

func (*BurnActionSpec) ShortDesc

func (*BurnActionSpec) ShortDesc() string

type BurnIOExecutor

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

func (*BurnIOExecutor) Exec

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

func (*BurnIOExecutor) Name

func (*BurnIOExecutor) Name() string

func (*BurnIOExecutor) SetChannel

func (be *BurnIOExecutor) SetChannel(channel spec.Channel)

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 CpuCommandModelSpec

type CpuCommandModelSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*CpuCommandModelSpec) LongDesc

func (*CpuCommandModelSpec) LongDesc() string

func (*CpuCommandModelSpec) Name

func (*CpuCommandModelSpec) Name() string

func (*CpuCommandModelSpec) ShortDesc

func (*CpuCommandModelSpec) 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 DiskCommandSpec

type DiskCommandSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*DiskCommandSpec) LongDesc

func (*DiskCommandSpec) LongDesc() string

func (*DiskCommandSpec) Name

func (*DiskCommandSpec) Name() string

func (*DiskCommandSpec) ShortDesc

func (*DiskCommandSpec) ShortDesc() string

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 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 FileAddActionExecutor

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

func (*FileAddActionExecutor) Exec

func (*FileAddActionExecutor) Name

func (*FileAddActionExecutor) Name() string

func (*FileAddActionExecutor) SetChannel

func (f *FileAddActionExecutor) SetChannel(channel spec.Channel)

type FileAddActionSpec

type FileAddActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*FileAddActionSpec) Aliases

func (*FileAddActionSpec) Aliases() []string

func (*FileAddActionSpec) LongDesc

func (f *FileAddActionSpec) LongDesc() string

func (*FileAddActionSpec) Name

func (*FileAddActionSpec) Name() string

func (*FileAddActionSpec) ShortDesc

func (*FileAddActionSpec) ShortDesc() string

type FileAppendActionExecutor

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

func (*FileAppendActionExecutor) Exec

func (*FileAppendActionExecutor) Name

func (*FileAppendActionExecutor) SetChannel

func (f *FileAppendActionExecutor) SetChannel(channel spec.Channel)

type FileAppendActionSpec

type FileAppendActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*FileAppendActionSpec) Aliases

func (*FileAppendActionSpec) Aliases() []string

func (*FileAppendActionSpec) LongDesc

func (f *FileAppendActionSpec) LongDesc() string

func (*FileAppendActionSpec) Name

func (*FileAppendActionSpec) Name() string

func (*FileAppendActionSpec) ShortDesc

func (*FileAppendActionSpec) ShortDesc() string

type FileChmodActionExecutor

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

func (*FileChmodActionExecutor) Exec

func (*FileChmodActionExecutor) Name

func (*FileChmodActionExecutor) SetChannel

func (f *FileChmodActionExecutor) SetChannel(channel spec.Channel)

type FileChmodActionSpec

type FileChmodActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*FileChmodActionSpec) Aliases

func (*FileChmodActionSpec) Aliases() []string

func (*FileChmodActionSpec) LongDesc

func (f *FileChmodActionSpec) LongDesc() string

func (*FileChmodActionSpec) Name

func (*FileChmodActionSpec) Name() string

func (*FileChmodActionSpec) ShortDesc

func (*FileChmodActionSpec) ShortDesc() string

type FileCommandSpec

type FileCommandSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*FileCommandSpec) LongDesc

func (*FileCommandSpec) LongDesc() string

func (*FileCommandSpec) Name

func (*FileCommandSpec) Name() string

func (*FileCommandSpec) ShortDesc

func (*FileCommandSpec) ShortDesc() string

type FileDeleteActionSpec

type FileDeleteActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*FileDeleteActionSpec) Aliases

func (*FileDeleteActionSpec) Aliases() []string

func (*FileDeleteActionSpec) LongDesc

func (f *FileDeleteActionSpec) LongDesc() string

func (*FileDeleteActionSpec) Name

func (*FileDeleteActionSpec) Name() string

func (*FileDeleteActionSpec) ShortDesc

func (*FileDeleteActionSpec) ShortDesc() string

type FileMoveActionExecutor

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

func (*FileMoveActionExecutor) Exec

func (*FileMoveActionExecutor) Name

func (*FileMoveActionExecutor) SetChannel

func (f *FileMoveActionExecutor) SetChannel(channel spec.Channel)

type FileMoveActionSpec

type FileMoveActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*FileMoveActionSpec) Aliases

func (*FileMoveActionSpec) Aliases() []string

func (*FileMoveActionSpec) LongDesc

func (f *FileMoveActionSpec) LongDesc() string

func (*FileMoveActionSpec) Name

func (*FileMoveActionSpec) Name() string

func (*FileMoveActionSpec) ShortDesc

func (*FileMoveActionSpec) ShortDesc() string

type FileRemoveActionExecutor

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

func (*FileRemoveActionExecutor) Exec

func (*FileRemoveActionExecutor) Name

func (*FileRemoveActionExecutor) SetChannel

func (f *FileRemoveActionExecutor) SetChannel(channel spec.Channel)

type FillActionExecutor

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

func (*FillActionExecutor) Exec

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

func (*FillActionExecutor) Name

func (*FillActionExecutor) Name() string

func (*FillActionExecutor) SetChannel

func (fae *FillActionExecutor) SetChannel(channel spec.Channel)

type FillActionSpec

type FillActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*FillActionSpec) Aliases

func (*FillActionSpec) Aliases() []string

func (*FillActionSpec) LongDesc

func (f *FillActionSpec) LongDesc() string

func (*FillActionSpec) Name

func (*FillActionSpec) Name() string

func (*FillActionSpec) ShortDesc

func (*FillActionSpec) ShortDesc() string

type FullLoadActionCommand

type FullLoadActionCommand struct {
	spec.BaseExpActionCommandSpec
}

func (*FullLoadActionCommand) Aliases

func (*FullLoadActionCommand) Aliases() []string

func (*FullLoadActionCommand) Flags

func (*FullLoadActionCommand) LongDesc

func (f *FullLoadActionCommand) LongDesc() string

func (*FullLoadActionCommand) Matchers

func (*FullLoadActionCommand) Matchers() []spec.ExpFlagSpec

func (*FullLoadActionCommand) Name

func (*FullLoadActionCommand) Name() string

func (*FullLoadActionCommand) ShortDesc

func (*FullLoadActionCommand) ShortDesc() string

type KernelInjectCommandSpec

type KernelInjectCommandSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*KernelInjectCommandSpec) LongDesc

func (*KernelInjectCommandSpec) LongDesc() string

func (*KernelInjectCommandSpec) Name

func (*KernelInjectCommandSpec) ShortDesc

func (*KernelInjectCommandSpec) ShortDesc() string

type KillProcessActionCommandSpec

type KillProcessActionCommandSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*KillProcessActionCommandSpec) Aliases

func (*KillProcessActionCommandSpec) Aliases() []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 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 MemCommandModelSpec

type MemCommandModelSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*MemCommandModelSpec) Example

func (*MemCommandModelSpec) Example() string

func (*MemCommandModelSpec) LongDesc

func (*MemCommandModelSpec) LongDesc() string

func (*MemCommandModelSpec) Name

func (*MemCommandModelSpec) Name() string

func (*MemCommandModelSpec) ShortDesc

func (*MemCommandModelSpec) ShortDesc() string

type MemLoadActionCommand

type MemLoadActionCommand struct {
	spec.BaseExpActionCommandSpec
}

func (*MemLoadActionCommand) Aliases

func (*MemLoadActionCommand) Aliases() []string

func (*MemLoadActionCommand) Flags

func (*MemLoadActionCommand) LongDesc

func (l *MemLoadActionCommand) LongDesc() string

func (*MemLoadActionCommand) Matchers

func (*MemLoadActionCommand) Matchers() []spec.ExpFlagSpec

func (*MemLoadActionCommand) Name

func (*MemLoadActionCommand) Name() string

func (*MemLoadActionCommand) ShortDesc

func (*MemLoadActionCommand) 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 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 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 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 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

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 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

type SSHClient

type SSHClient struct {
	Host     string
	Username string
	Key      string

	Password string
	Port     int
	// contains filtered or unexported fields
}

func (SSHClient) RunCommand

func (c SSHClient) RunCommand(command string) ([]byte, error)

type SSHExecutor

type SSHExecutor struct {
	spec.Executor
}

func (*SSHExecutor) Exec

func (e *SSHExecutor) Exec(uid string, ctx context.Context, expModel *spec.ExpModel) *spec.Response

func (*SSHExecutor) Name

func (*SSHExecutor) Name() string

func (*SSHExecutor) SetChannel

func (e *SSHExecutor) SetChannel(channel spec.Channel)

type ScriptCommandModelSpec

type ScriptCommandModelSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*ScriptCommandModelSpec) LongDesc

func (*ScriptCommandModelSpec) LongDesc() string

func (*ScriptCommandModelSpec) Name

func (*ScriptCommandModelSpec) ShortDesc

func (*ScriptCommandModelSpec) ShortDesc() string

type ScriptDelayActionCommand

type ScriptDelayActionCommand struct {
	spec.BaseExpActionCommandSpec
}

func (*ScriptDelayActionCommand) Aliases

func (*ScriptDelayActionCommand) Aliases() []string

func (*ScriptDelayActionCommand) LongDesc

func (s *ScriptDelayActionCommand) LongDesc() string

func (*ScriptDelayActionCommand) Name

func (*ScriptDelayActionCommand) ShortDesc

func (*ScriptDelayActionCommand) ShortDesc() string

type ScriptDelayExecutor

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

func (*ScriptDelayExecutor) Exec

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

func (*ScriptDelayExecutor) Name

func (*ScriptDelayExecutor) Name() string

func (*ScriptDelayExecutor) SetChannel

func (sde *ScriptDelayExecutor) SetChannel(channel spec.Channel)

type ScriptExitActionCommand

type ScriptExitActionCommand struct {
	spec.BaseExpActionCommandSpec
}

func (*ScriptExitActionCommand) Aliases

func (*ScriptExitActionCommand) Aliases() []string

func (*ScriptExitActionCommand) LongDesc

func (s *ScriptExitActionCommand) LongDesc() string

func (*ScriptExitActionCommand) Name

func (*ScriptExitActionCommand) ShortDesc

func (*ScriptExitActionCommand) ShortDesc() string

type ScriptExitExecutor

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

func (*ScriptExitExecutor) Exec

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

func (*ScriptExitExecutor) Name

func (*ScriptExitExecutor) Name() string

func (*ScriptExitExecutor) SetChannel

func (see *ScriptExitExecutor) 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)

type StraceDelayActionExecutor

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

func (*StraceDelayActionExecutor) Exec

func (*StraceDelayActionExecutor) Name

func (*StraceDelayActionExecutor) SetChannel

func (dae *StraceDelayActionExecutor) SetChannel(channel spec.Channel)

type StraceDelayActionSpec

type StraceDelayActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*StraceDelayActionSpec) Aliases

func (*StraceDelayActionSpec) Aliases() []string

func (*StraceDelayActionSpec) LongDesc

func (f *StraceDelayActionSpec) LongDesc() string

func (*StraceDelayActionSpec) Name

func (*StraceDelayActionSpec) Name() string

func (*StraceDelayActionSpec) ShortDesc

func (*StraceDelayActionSpec) ShortDesc() string

type StraceErrorActionExecutor

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

func (*StraceErrorActionExecutor) Exec

func (*StraceErrorActionExecutor) Name

func (*StraceErrorActionExecutor) SetChannel

func (dae *StraceErrorActionExecutor) SetChannel(channel spec.Channel)

type StraceErrorActionSpec

type StraceErrorActionSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*StraceErrorActionSpec) Aliases

func (*StraceErrorActionSpec) Aliases() []string

func (*StraceErrorActionSpec) LongDesc

func (f *StraceErrorActionSpec) LongDesc() string

func (*StraceErrorActionSpec) Name

func (*StraceErrorActionSpec) Name() string

func (*StraceErrorActionSpec) ShortDesc

func (*StraceErrorActionSpec) ShortDesc() string

Jump to

Keyboard shortcuts

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