exthost

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetID = "host"

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

Variables

View Source
var (
	ExecutionRunDataMap = sync.Map{} //make(map[uuid.UUID]*ExecutionRunData)
)

Make sure action implements all required interfaces

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 ExecutionRunData

type ExecutionRunData struct {
	// contains filtered or unexported fields
}

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