Documentation ¶
Index ¶
- Constants
- Variables
- func CheckTargetHostname(attributes map[string][]string) (*string, error)
- func GetDiscoveryList() discovery_kit_api.DiscoveryList
- func NewNetworkBlackholeContainerAction() action_kit_sdk.Action[NetworkActionState]
- func NewNetworkBlockDnsContainerAction() action_kit_sdk.Action[NetworkActionState]
- func NewNetworkCorruptPackagesContainerAction() action_kit_sdk.Action[NetworkActionState]
- func NewNetworkDelayContainerAction() action_kit_sdk.Action[NetworkActionState]
- func NewNetworkLimitBandwidthContainerAction() action_kit_sdk.Action[NetworkActionState]
- func NewNetworkPackageLossContainerAction() action_kit_sdk.Action[NetworkActionState]
- func NewShutdownAction() action_kit_sdk.Action[ActionState]
- func NewStopProcessAction() action_kit_sdk.Action[StopProcessActionState]
- func NewStressCPUAction() action_kit_sdk.Action[resources.StressActionState]
- func NewStressIOAction() action_kit_sdk.Action[resources.StressActionState]
- func NewStressMemoryAction() action_kit_sdk.Action[resources.StressActionState]
- func NewTimetravelAction() action_kit_sdk.Action[TimeTravelActionState]
- func RegisterDiscoveryHandlers()
- type ActionState
- type ExecutionRunData
- type NetworkActionState
- type ShutdownMethod
- type StopProcessActionState
- type TimeTravelActionState
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 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 NewStopProcessAction ¶
func NewStopProcessAction() action_kit_sdk.Action[StopProcessActionState]
func NewStressCPUAction ¶
func NewStressCPUAction() action_kit_sdk.Action[resources.StressActionState]
func NewStressIOAction ¶
func NewStressIOAction() action_kit_sdk.Action[resources.StressActionState]
func NewStressMemoryAction ¶
func NewStressMemoryAction() action_kit_sdk.Action[resources.StressActionState]
func NewTimetravelAction ¶
func NewTimetravelAction() action_kit_sdk.Action[TimeTravelActionState]
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 ¶
Source Files ¶
- action_network.go
- action_network_bandwidth.go
- action_network_blackhole.go
- action_network_corrupt.go
- action_network_delay.go
- action_network_dns.go
- action_network_loss.go
- action_shutdown.go
- action_stop_process.go
- action_stress_cpu.go
- action_stress_io.go
- action_stress_memory.go
- action_timetravel.go
- common.go
- discovery.go
- envVars.go
Click to show internal directories.
Click to hide internal directories.