exthostwindows

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Percentage FillMode   = "PERCENTAGE"
	MBToFill   FillMode   = "MB_TO_FILL"
	MBLeft     FillMode   = "MB_LEFT"
	AtOnce     FillMethod = "AT_ONCE"
	OverTime   FillMethod = "OVER_TIME"
)
View Source
const (
	ModeUsage    Mode = "usage"
	ModeAbsolute Mode = "absolute"
	UnitPercent  Unit = "%"
	UnitMegabyte Unit = "MiB"
)
View Source
const (
	WindowsHostTechnology = "Windows Host"

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

Variables

View Source
var FillDiskMethods = struct {
	AtOnce   FillMethod
	OverTime FillMethod
}{
	AtOnce:   AtOnce,
	OverTime: OverTime,
}
View Source
var FillDiskModes = struct {
	Percentage FillMode
	MBToFill   FillMode
	MBLeft     FillMode
}{
	Percentage: Percentage,
	MBToFill:   MBToFill,
	MBLeft:     MBLeft,
}
View Source
var FillMemoryModes = struct {
	Usage    Mode
	Absolute Mode
}{
	Usage:    ModeUsage,
	Absolute: ModeAbsolute,
}
View Source
var FillMemoryUnits = struct {
	Percent  Unit
	Megabyte Unit
}{
	Percent:  UnitPercent,
	Megabyte: UnitMegabyte,
}
View Source
var IOStressLayers = struct {
	FileSystem     IOStressLayer
	NamedPartition IOStressLayer
	PhysicalDisk   IOStressLayer
}{
	FileSystem:     FileSystem,
	NamedPartition: NamedPartition,
	PhysicalDisk:   PhysicalDisk,
}
View Source
var ProcessPriorities = struct {
	Normal      ProcessPriority
	AboveNormal ProcessPriority
	High        ProcessPriority
	RealTime    ProcessPriority
}{
	Normal:      Normal,
	AboveNormal: AboveNormal,
	High:        High,
	RealTime:    RealTime,
}

Functions

func ActivateWindowsServiceHandler

func ActivateWindowsServiceHandler(stopHandler func())

func BytesToMegabytes added in v0.2.0

func BytesToMegabytes(bytes uint64) uint64

func CheckTargetHostname

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

func NewFillDiskAction added in v0.2.0

func NewFillDiskAction() action_kit_sdk.Action[FillDiskActionState]

func NewFillMemAction added in v0.2.0

func NewFillMemAction() action_kit_sdk.Action[FillMemActionState]

func NewHostDiscovery

func NewHostDiscovery() discovery_kit_sdk.TargetDiscovery

func NewNetworkBlackholeContainerAction

func NewNetworkBlackholeContainerAction() action_kit_sdk.Action[NetworkActionState]

func NewNetworkBlockDnsContainerAction

func NewNetworkBlockDnsContainerAction() action_kit_sdk.Action[NetworkActionState]

func NewNetworkCorruptPackagesContainerAction

func NewNetworkCorruptPackagesContainerAction() action_kit_sdk.Action[NetworkActionState]

func NewNetworkDelayContainerAction

func NewNetworkDelayContainerAction() action_kit_sdk.Action[NetworkActionState]

func NewNetworkLimitBandwidthContainerAction

func NewNetworkLimitBandwidthContainerAction() action_kit_sdk.Action[NetworkActionState]

func NewNetworkPackageLossContainerAction

func NewNetworkPackageLossContainerAction() action_kit_sdk.Action[NetworkActionState]

func NewShutdownAction

func NewShutdownAction() action_kit_sdk.Action[ActionState]

func NewStressCpuAction added in v0.2.0

func NewStressCpuAction() action_kit_sdk.Action[CPUStressActionState]

func NewStressIoAction added in v0.2.0

func NewStressIoAction() action_kit_sdk.Action[IoStressActionState]

func RegisterQosPolicyCleanup

func RegisterQosPolicyCleanup() func()

Types

type ActionState

type ActionState struct {
	Reboot bool
}

type CPUStressActionState added in v0.2.0

type CPUStressActionState struct {
	StressOpts  CpuStressOpts
	ExecutionId uuid.UUID
}

type CpuStressOpts added in v0.2.0

type CpuStressOpts struct {
	Cores    int
	CpuLoad  int
	Priority ProcessPriority
	Duration time.Duration
}

func (*CpuStressOpts) Args added in v0.2.0

func (o *CpuStressOpts) Args() []string

type FillDiskActionState added in v0.2.0

type FillDiskActionState struct {
	StressOpts  FillDiskOpts
	ExecutionId uuid.UUID
}

type FillDiskOpts added in v0.2.0

type FillDiskOpts struct {
	Duration  time.Duration
	FillMode  FillMode
	Method    FillMethod
	Path      string
	ByteSize  uint64
	BlockSize uint
	FilePath  string
}

func (*FillDiskOpts) Args added in v0.2.0

func (o *FillDiskOpts) Args() []string

type FillMemActionState added in v0.2.0

type FillMemActionState struct {
	StressOpts  FillMemOpts
	ExecutionId uuid.UUID
}

type FillMemOpts added in v0.2.0

type FillMemOpts struct {
	Duration time.Duration
	Mode     Mode
	Unit     Unit
	Size     uint
}

func (*FillMemOpts) Args added in v0.2.0

func (o *FillMemOpts) Args() []string

type FillMethod added in v0.2.0

type FillMethod string

func (FillMethod) IsValid added in v0.2.0

func (fm FillMethod) IsValid() bool

type FillMode added in v0.2.0

type FillMode string

func (FillMode) IsValid added in v0.2.0

func (fm FillMode) IsValid() bool

type IOStressLayer added in v0.2.0

type IOStressLayer string
const (
	FileSystem     IOStressLayer = "File System"
	NamedPartition IOStressLayer = "Named Partition"
	PhysicalDisk   IOStressLayer = "Physical Disk"
)

func (IOStressLayer) IsValid added in v0.2.0

func (sl IOStressLayer) IsValid() bool

type IoStressActionState added in v0.2.0

type IoStressActionState struct {
	StressOpts  IoStressOpts
	ExecutionId uuid.UUID
}

type IoStressOpts added in v0.2.0

type IoStressOpts struct {
	StressLayer        IOStressLayer
	StressLayerInput   string
	ThreadCount        uint
	Duration           time.Duration
	DisableSwHwCaching bool
}

func (*IoStressOpts) Args added in v0.2.0

func (o *IoStressOpts) Args() []string

type Mode added in v0.2.0

type Mode string

func (Mode) IsValid added in v0.2.0

func (m Mode) IsValid() bool

type NetworkActionState

type NetworkActionState struct {
	NetworkOpts json.RawMessage
}

type ProcessPriority added in v0.2.0

type ProcessPriority string
const (
	Normal      ProcessPriority = "Normal"
	AboveNormal ProcessPriority = "AboveNormal"
	High        ProcessPriority = "High"
	RealTime    ProcessPriority = "RealTime"
)

func (ProcessPriority) IsValid added in v0.2.0

func (p ProcessPriority) IsValid() bool

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 TimeTravelActionState

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

type Unit added in v0.2.0

type Unit string

func (Unit) IsValid added in v0.2.0

func (u Unit) IsValid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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