Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PartialPod ¶
type PartialPod struct { Namespace string Name string Processes []struct { Pid, Command string } TcQdisc []string Iptables []string }
PartialPod is a subset of the Pod type. It contains necessary information for forced recovery.
func SelectPods ¶
func SelectPods(ctx context.Context, client *ctrlclient.CtrlClient, selector v1alpha1.PodSelectorSpec) ([]*PartialPod, error)
type Recoverer ¶
type Recoverer interface { // Recover target pod forcedly Recover(ctx context.Context, pod *PartialPod) error }
func HTTPRecoverer ¶
func HTTPRecoverer(client *ctrlclient.CtrlClient) Recoverer
func IORecoverer ¶
func IORecoverer(client *ctrlclient.CtrlClient) Recoverer
func NetworkRecoverer ¶
func NetworkRecoverer(client *ctrlclient.CtrlClient) Recoverer
func StressRecoverer ¶
func StressRecoverer(client *ctrlclient.CtrlClient) Recoverer
type RecovererBuilder ¶
type RecovererBuilder func(client *ctrlclient.CtrlClient) Recoverer
Click to show internal directories.
Click to hide internal directories.