extcontainer

package
v1.3.21 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ID = fmt.Sprintf("%s.fill_disk", BaseActionID)

Functions

func AddPrefix

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

func NewContainerDiscovery

func NewContainerDiscovery(client types.Client) discovery_kit_sdk.TargetDiscovery

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
	Sidecar      diskfill.SidecarOpts
	FillDiskOpts diskfill.Opts
}

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
}

type PauseActionState

type PauseActionState struct {
	ContainerId string
}

type StopActionState

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

type StressActionState

type StressActionState struct {
	Sidecar         stress.SidecarOpts
	ContainerID     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