kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const BladeNS = "chaosblade"
View Source
const Command = "kubectl"

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func (*Channel) GetBladePodByContainer

func (c *Channel) GetBladePodByContainer(container, pod, namespace, kubeconfig string) (string, error)

func (*Channel) GetScriptPath

func (*Channel) GetScriptPath() string

func (*Channel) PatchContainerToPod

func (c *Channel) PatchContainerToPod(deployment, namespace string, start bool) *transport.Response

func (*Channel) Run

func (c *Channel) Run(ctx context.Context, script, args string) *transport.Response

type CommandModelSpec

type CommandModelSpec struct {
}

func (*CommandModelSpec) Actions

func (*CommandModelSpec) Example

func (*CommandModelSpec) Example() string

func (*CommandModelSpec) Flags

func (cms *CommandModelSpec) Flags() []exec.ExpFlagSpec

func (*CommandModelSpec) LongDesc

func (*CommandModelSpec) LongDesc() string

func (*CommandModelSpec) Name

func (*CommandModelSpec) Name() string

func (*CommandModelSpec) PreExecutor

func (cms *CommandModelSpec) PreExecutor() exec.PreExecutor

func (*CommandModelSpec) ShortDesc

func (*CommandModelSpec) ShortDesc() string

type DeleteActionCommandSpec

type DeleteActionCommandSpec struct {
}

func (*DeleteActionCommandSpec) Aliases

func (*DeleteActionCommandSpec) Aliases() []string

func (*DeleteActionCommandSpec) Executor

func (*DeleteActionCommandSpec) Executor(channels exec.Channel) exec.Executor

func (*DeleteActionCommandSpec) Flags

func (*DeleteActionCommandSpec) LongDesc

func (*DeleteActionCommandSpec) LongDesc() string

func (*DeleteActionCommandSpec) Matchers

func (*DeleteActionCommandSpec) Name

func (*DeleteActionCommandSpec) ShortDesc

func (*DeleteActionCommandSpec) ShortDesc() string

type Executor

type Executor struct {
}

func (*Executor) Exec

func (*Executor) Exec(uid string, ctx context.Context, model *exec.ExpModel) *transport.Response

func (*Executor) Name

func (*Executor) Name() string

func (*Executor) SetChannel

func (e *Executor) SetChannel(channel exec.Channel)

type PreExecutor

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

func (*PreExecutor) PreExec

func (pe *PreExecutor) PreExec(cmdName, parentCmdName string, flags map[string]string) func(ctx context.Context) (exec.Channel, context.Context, error)

PreExec

Jump to

Keyboard shortcuts

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