cloudnativeexecutor

package
v0.0.0-...-2b1da1d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudNativeExecutor

type CloudNativeExecutor interface {
	Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)
	Recover(ctx context.Context, injectObject, uid, backup string) error
	Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)
}

func GetCloudNativeExecutor

func GetCloudNativeExecutor(target v1alpha1.CloudTargetType, fault string) CloudNativeExecutor

type ClusterCompletedJobExecutor

type ClusterCompletedJobExecutor struct{}

func (*ClusterCompletedJobExecutor) Inject

func (e *ClusterCompletedJobExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*ClusterCompletedJobExecutor) Query

func (e *ClusterCompletedJobExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*ClusterCompletedJobExecutor) Recover

func (e *ClusterCompletedJobExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type ClusterPendingPodExecutor

type ClusterPendingPodExecutor struct{}

func (*ClusterPendingPodExecutor) Inject

func (e *ClusterPendingPodExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*ClusterPendingPodExecutor) Query

func (e *ClusterPendingPodExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*ClusterPendingPodExecutor) Recover

func (e *ClusterPendingPodExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type DeploymentDeleteExecutor

type DeploymentDeleteExecutor struct{}

func (*DeploymentDeleteExecutor) Inject

func (e *DeploymentDeleteExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*DeploymentDeleteExecutor) Query

func (e *DeploymentDeleteExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*DeploymentDeleteExecutor) Recover

func (e *DeploymentDeleteExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type DeploymentFinalizerExecutor

type DeploymentFinalizerExecutor struct{}

func (*DeploymentFinalizerExecutor) Inject

func (e *DeploymentFinalizerExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*DeploymentFinalizerExecutor) Query

func (e *DeploymentFinalizerExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*DeploymentFinalizerExecutor) Recover

func (e *DeploymentFinalizerExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type DeploymentLabelExecutor

type DeploymentLabelExecutor struct{}

func (*DeploymentLabelExecutor) Inject

func (e *DeploymentLabelExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*DeploymentLabelExecutor) Query

func (e *DeploymentLabelExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*DeploymentLabelExecutor) Recover

func (e *DeploymentLabelExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type DeploymentReplicasExecutor

type DeploymentReplicasExecutor struct{}

func (*DeploymentReplicasExecutor) Inject

func (e *DeploymentReplicasExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*DeploymentReplicasExecutor) Query

func (e *DeploymentReplicasExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*DeploymentReplicasExecutor) Recover

func (e *DeploymentReplicasExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type NodeLabelExecutor

type NodeLabelExecutor struct{}

func (*NodeLabelExecutor) Inject

func (e *NodeLabelExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*NodeLabelExecutor) Query

func (e *NodeLabelExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*NodeLabelExecutor) Recover

func (e *NodeLabelExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type NodeTaintExecutor

type NodeTaintExecutor struct{}

func (*NodeTaintExecutor) Inject

func (e *NodeTaintExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*NodeTaintExecutor) Query

func (e *NodeTaintExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*NodeTaintExecutor) Recover

func (e *NodeTaintExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type PodContainerImageExecutor

type PodContainerImageExecutor struct{}

func (*PodContainerImageExecutor) Inject

func (e *PodContainerImageExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*PodContainerImageExecutor) Query

func (e *PodContainerImageExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*PodContainerImageExecutor) Recover

func (e *PodContainerImageExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type PodContainerKillExecutor

type PodContainerKillExecutor struct{}

func (*PodContainerKillExecutor) Inject

func (e *PodContainerKillExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*PodContainerKillExecutor) Query

func (e *PodContainerKillExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*PodContainerKillExecutor) Recover

func (e *PodContainerKillExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type PodContainerPauseExecutor

type PodContainerPauseExecutor struct{}

func (*PodContainerPauseExecutor) Inject

func (e *PodContainerPauseExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*PodContainerPauseExecutor) Query

func (e *PodContainerPauseExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*PodContainerPauseExecutor) Recover

func (e *PodContainerPauseExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type PodDeleteExecutor

type PodDeleteExecutor struct{}

func (*PodDeleteExecutor) Inject

func (e *PodDeleteExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*PodDeleteExecutor) Query

func (e *PodDeleteExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*PodDeleteExecutor) Recover

func (e *PodDeleteExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type PodFinalizerExecutor

type PodFinalizerExecutor struct{}

func (*PodFinalizerExecutor) Inject

func (e *PodFinalizerExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*PodFinalizerExecutor) Query

func (e *PodFinalizerExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*PodFinalizerExecutor) Recover

func (e *PodFinalizerExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type PodLabelExecutor

type PodLabelExecutor struct{}

func (*PodLabelExecutor) Inject

func (e *PodLabelExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, args []v1alpha1.ArgsUnit) (string, error)

func (*PodLabelExecutor) Query

func (e *PodLabelExecutor) Query(ctx context.Context, injectObject, uid, backup string, phase v1alpha1.PhaseType) (*model.SubExpInfo, error)

func (*PodLabelExecutor) Recover

func (e *PodLabelExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error

type ReplicasArgs

type ReplicasArgs struct {
	Mode  ReplicasModeType `json:"mode,omitempty"`
	Value int              `json:"value"`
}

func ParseReplicasArgs

func ParseReplicasArgs(args []v1alpha1.ArgsUnit) (*ReplicasArgs, error)

type ReplicasModeType

type ReplicasModeType string
const (
	AbsoluteCountMode   ReplicasModeType = "absolutecount"
	RelativeCountMode   ReplicasModeType = "relativecount"
	RelativePercentMode ReplicasModeType = "relativepercent"
)

Jump to

Keyboard shortcuts

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