recover

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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