exthost

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 32 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

This section is empty.

Functions

func CheckTargetHostname

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

func GetDiscoveryList

func GetDiscoveryList() discovery_kit_api.DiscoveryList

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 RegisterDiscoveryHandlers

func RegisterDiscoveryHandlers()

Types

type ActionState

type ActionState struct {
	Reboot         bool
	ShutdownMethod ShutdownMethod
}

type NetworkActionState

type NetworkActionState struct {
	ExecutionId uuid.UUID
	NetworkOpts json.RawMessage
}

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 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