exthost

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetID = "com.steadybit.extension_host.host"

	BaseActionID = "com.steadybit.extension_host"
)
View Source
const SteadybitLabelPrefix = "steadybit_label_"

Variables

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

Functions

func CheckTargetHostname

func CheckTargetHostname(attributes map[string][]string) (*string, error)

func NewFillDiskHostAction added in v1.2.0

func NewFillDiskHostAction(r runc.Runc) action_kit_sdk.Action[FillDiskActionState]

func NewHostDiscovery added in v1.2.0

func NewHostDiscovery() discovery_kit_sdk.TargetDiscovery

func NewNetworkBlackholeContainerAction

func NewNetworkBlackholeContainerAction(r 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(r runc.Runc) action_kit_sdk.Action[NetworkActionState]

func NewNetworkPackageLossContainerAction

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

func NewShutdownAction

func NewShutdownAction() action_kit_sdk.Action[ActionState]

func NewStressCpuAction added in v1.2.0

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

func NewStressIoAction added in v1.2.0

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

Types

type ActionState

type ActionState struct {
	Reboot         bool
	ShutdownMethod ShutdownMethod
}

type FillDiskActionState added in v1.2.0

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

type Mode added in v1.2.0

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
}

type ShutdownMethod

type ShutdownMethod uint64
const (
	Command ShutdownMethod = iota
	SyscallOrSysrq
)

type StopProcessActionState

type StopProcessActionState struct {
	ExecutionID   uuid.UUID
	Delay         time.Duration
	ProcessFilter string //pid or executable name
	Graceful      bool
	Deadline      time.Time
	Duration      time.Duration
}

type StressActionState added in v1.2.0

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

type TimeTravelActionState

type TimeTravelActionState struct {
	DisableNtp    bool
	Offset        time.Duration
	OffsetApplied bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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