Documentation ¶
Index ¶
- type CloudNativeExecutor
- type ClusterCompletedJobExecutor
- func (e *ClusterCompletedJobExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *ClusterCompletedJobExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *ClusterCompletedJobExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type ClusterPendingPodExecutor
- func (e *ClusterPendingPodExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *ClusterPendingPodExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *ClusterPendingPodExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type DeploymentDeleteExecutor
- func (e *DeploymentDeleteExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *DeploymentDeleteExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *DeploymentDeleteExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type DeploymentFinalizerExecutor
- func (e *DeploymentFinalizerExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *DeploymentFinalizerExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *DeploymentFinalizerExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type DeploymentLabelExecutor
- func (e *DeploymentLabelExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *DeploymentLabelExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *DeploymentLabelExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type DeploymentReplicasExecutor
- func (e *DeploymentReplicasExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *DeploymentReplicasExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *DeploymentReplicasExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type NodeLabelExecutor
- func (e *NodeLabelExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *NodeLabelExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *NodeLabelExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type NodeTaintExecutor
- func (e *NodeTaintExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *NodeTaintExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *NodeTaintExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type PodContainerImageExecutor
- func (e *PodContainerImageExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *PodContainerImageExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *PodContainerImageExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type PodContainerKillExecutor
- func (e *PodContainerKillExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *PodContainerKillExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *PodContainerKillExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type PodContainerPauseExecutor
- func (e *PodContainerPauseExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *PodContainerPauseExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *PodContainerPauseExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type PodDeleteExecutor
- func (e *PodDeleteExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *PodDeleteExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *PodDeleteExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type PodFinalizerExecutor
- func (e *PodFinalizerExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *PodFinalizerExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *PodFinalizerExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type PodLabelExecutor
- func (e *PodLabelExecutor) Inject(ctx context.Context, injectObject, uid, timeout string, ...) (string, error)
- func (e *PodLabelExecutor) Query(ctx context.Context, injectObject, uid, backup string, ...) (*model.SubExpInfo, error)
- func (e *PodLabelExecutor) Recover(ctx context.Context, injectObject, uid, backup string) error
- type ReplicasArgs
- type ReplicasModeType
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{}
type ClusterPendingPodExecutor ¶
type ClusterPendingPodExecutor struct{}
type DeploymentDeleteExecutor ¶
type DeploymentDeleteExecutor struct{}
type DeploymentFinalizerExecutor ¶
type DeploymentFinalizerExecutor struct{}
type DeploymentLabelExecutor ¶
type DeploymentLabelExecutor struct{}
type DeploymentReplicasExecutor ¶
type DeploymentReplicasExecutor struct{}
type NodeLabelExecutor ¶
type NodeLabelExecutor struct{}
type NodeTaintExecutor ¶
type NodeTaintExecutor struct{}
type PodContainerImageExecutor ¶
type PodContainerImageExecutor struct{}
type PodContainerKillExecutor ¶
type PodContainerKillExecutor struct{}
type PodContainerPauseExecutor ¶
type PodContainerPauseExecutor struct{}
type PodDeleteExecutor ¶
type PodDeleteExecutor struct{}
type PodFinalizerExecutor ¶
type PodFinalizerExecutor struct{}
type PodLabelExecutor ¶
type PodLabelExecutor struct{}
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" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.