extcontainer

package
v1.3.30 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseActionID = "com.steadybit.extension_container"
)

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(containerId string, runtime types.Runtime) string

func NewContainerDiscovery

func NewContainerDiscovery(client types.Client) discovery_kit_sdk.TargetDiscovery

func NewFillMemoryContainerAction added in v1.3.22

func NewFillMemoryContainerAction(r runc.Runc) action_kit_sdk.Action[FillMemoryActionState]

func NewNetworkBlackholeContainerAction

func NewNetworkBlackholeContainerAction(runc runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewNetworkBlockDnsContainerAction

func NewNetworkBlockDnsContainerAction(r runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewNetworkCorruptPackagesContainerAction

func NewNetworkCorruptPackagesContainerAction(r runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewNetworkDelayContainerAction

func NewNetworkDelayContainerAction(r runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewNetworkLimitBandwidthContainerAction

func NewNetworkLimitBandwidthContainerAction(runc runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewNetworkPackageLossContainerAction

func NewNetworkPackageLossContainerAction(r runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewPauseContainerAction

func NewPauseContainerAction(client types.Client) action_kit_sdk.Action[PauseActionState]

func NewStopContainerAction

func NewStopContainerAction(client types.Client) action_kit_sdk.Action[StopActionState]

func NewStressCpuContainerAction

func NewStressCpuContainerAction(r runc.Runc) action_kit_sdk.Action[StressActionState]

func NewStressIoContainerAction

func NewStressIoContainerAction(r runc.Runc) action_kit_sdk.Action[StressActionState]

func NewStressMemoryContainerAction

func NewStressMemoryContainerAction(r runc.Runc) action_kit_sdk.Action[StressActionState]

func RemovePrefix

func RemovePrefix(containerId string) string

Types

type FillDiskActionState

type FillDiskActionState struct {
	ExecutionId  uuid.UUID
	ContainerID  string
	TargetLabel  string
	Sidecar      diskfill.SidecarOpts
	FillDiskOpts diskfill.Opts
}

type FillMemoryActionState added in v1.3.22

type FillMemoryActionState struct {
	ExecutionId     uuid.UUID
	ContainerID     string
	TargetLabel     string
	TargetProcess   runc.LinuxProcessInfo
	FillMemoryOpts  memfill.Opts
	IgnoreExitCodes []int
}

type Mode

type Mode string
const (
	ModeReadWriteAndFlush Mode = "read_write_and_flush"
	ModeReadWrite         Mode = "read_write"
	ModeFlush             Mode = "flush"
)

type NetworkActionState

type NetworkActionState struct {
	ExecutionId uuid.UUID
	NetworkOpts json.RawMessage
	Sidecar     network.SidecarOpts
	ContainerID string
	TargetLabel string
}

type PauseActionState

type PauseActionState struct {
	ContainerId string
	TargetLabel string
}

type StopActionState

type StopActionState struct {
	ContainerId string
	TargetLabel string
	Graceful    bool
	ExecutionId uuid.UUID
}

type StressActionState

type StressActionState struct {
	Sidecar         stress.SidecarOpts
	ContainerID     string
	TargetLabel     string
	StressOpts      stress.Opts
	ExecutionId     uuid.UUID
	IgnoreExitCodes []int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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