exthost

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 52 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	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 NewCpuSpeedAction added in v1.4.3

func NewCpuSpeedAction() action_kit_sdk.Action[CpuSpeedActionState]

func NewFillDiskHostAction added in v1.2.0

func NewFillMemoryHostAction added in v1.2.21

func NewHostDiscovery added in v1.2.0

func NewHostDiscovery() discovery_kit_sdk.TargetDiscovery

func NewNetworkDNSErrorInjectionAction added in v1.5.0

func NewNetworkDNSErrorInjectionAction(r ociruntime.OciRuntime) action_kit_sdk.Action[DNSErrorInjectionState]

func NewNetworkDelayDependencyAction added in v1.8.0

func NewNetworkDelayDependencyAction(r ociruntime.OciRuntime) action_kit_sdk.Action[DependencyFaultState]

func NewNetworkHttpAbortDependencyAction added in v1.8.0

func NewNetworkHttpAbortDependencyAction(r ociruntime.OciRuntime) action_kit_sdk.Action[DependencyFaultState]

func NewNetworkTcpResetAction added in v1.5.0

func NewNetworkTcpResetAction(r ociruntime.OciRuntime) action_kit_sdk.Action[NetworkTcpResetState]

func NewShutdownAction

func NewShutdownAction() action_kit_sdk.Action[ActionState]

func NewStressCpuAction added in v1.2.0

func NewStressIoAction added in v1.2.0

Types

type ActionState

type ActionState struct {
	Reboot bool
}

type CpuSpeedActionState added in v1.4.3

type CpuSpeedActionState struct {
	OriginalMinFreq uint64
	OriginalMaxFreq uint64
	NewMinFreq      uint64
	NewMaxFreq      uint64
	FreqsApplied    bool
}

type DNSErrorInjectionState added in v1.5.0

type DNSErrorInjectionState struct {
	ExecutionId string
}

type DependencyFaultState added in v1.8.0

type DependencyFaultState struct {
	ExecutionId string
}

type FillDiskActionState added in v1.2.0

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

type FillMemoryActionState added in v1.2.21

type FillMemoryActionState struct {
	ExecutionId     uuid.UUID
	TargetProcess   ociruntime.LinuxProcessInfo
	FillMemoryOpts  memfill.Opts
	IgnoreExitCodes []int
}

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     netfault.SidecarOpts
	// QdiscSnapshot holds the pre-attack qdisc tree captured by netfault.Apply.
	// It travels through the action_kit_sdk per-execution state so Stop can
	// hand it back to netfault.Revert and restore the original (cloud-tuned)
	// root after the attack tree is torn down. Empty when strict-mode is on,
	// the attack doesn't touch a tc root, or the capture itself errored.
	QdiscSnapshot netfault.QdiscSnapshot
}

type NetworkTcpResetState added in v1.8.0

type NetworkTcpResetState struct {
	NetworkActionState
	L7         bool
	Dependency DependencyFaultState
}

NetworkTcpResetState carries whichever sub-state the chosen mode uses. NetworkActionState is embedded (not nested) so that state persisted by an older build — a flat NetworkActionState, back when this action used that type directly — still deserializes here and its packet-level cleanup survives an upgrade that lands mid-execution.

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
	// ExecutionContext tells the NTP blocks of concurrent time travels apart,
	// netfault tracks them as active attacks.
	ExecutionContext netfault.ExecutionContext
}

Directories

Path Synopsis
Package flags holds the action parameters that change what an attack does, with the logic and the execution-log output that depend on them.
Package flags holds the action parameters that change what an attack does, with the logic and the execution-log output that depend on them.

Jump to

Keyboard shortcuts

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