package
2.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Complete means complete the current task and run the next one.
Fail means fail the current task and skip all next tasks.
NewMockBreakableResult creates a new mock instance.
NewMockContext creates a new mock instance.
NewMockContinuableResult creates a new mock instance.
NewMockResult creates a new mock instance.
NewMockTask creates a new mock instance.
NewMockTaskReporter creates a new mock instance.
NewMockTaskRunner creates a new mock instance.
NewMockWithMessage creates a new mock instance.
No description provided by the author
There are five status of tasks - Complete: means this task is complete and all is expected - Failed: means an err occurred - Retry: means this task need to wait an interval and retry - NotRun: means this task is not run - Skip: means this task is skipped And five results of reconiling 1.
Retry means continue all next tasks and retry after dur.

# Structs

MockBreakableResult is a mock of BreakableResult interface.
MockBreakableResultMockRecorder is the mock recorder for MockBreakableResult.
MockContext is a mock of Context interface.
MockContextMockRecorder is the mock recorder for MockContext.
MockContinuableResult is a mock of ContinuableResult interface.
MockContinuableResultMockRecorder is the mock recorder for MockContinuableResult.
MockResult is a mock of Result interface.
MockResultMockRecorder is the mock recorder for MockResult.
MockTask is a mock of Task interface.
MockTaskMockRecorder is the mock recorder for MockTask.
MockTaskReporter is a mock of TaskReporter interface.
MockTaskReporterMockRecorder is the mock recorder for MockTaskReporter.
MockTaskRunner is a mock of TaskRunner interface.
MockTaskRunnerMockRecorder is the mock recorder for MockTaskRunner.
MockWithMessage is a mock of WithMessage interface.
MockWithMessageMockRecorder is the mock recorder for MockWithMessage.

# Interfaces

BreakableResult defines a result which can stop task execution.
Context is a wrapper of any struct which can return its self It's defined to avoid calling ctx.Value().
ContinuableResult defines a result which can continue task execution.
Result defines the result of a task.
Task defines a task can be executed by TaskRunner.
TaskReporter appends results of tasks and output a summary.
TaskRunner is an executor to run a series of tasks sequentially.
WithMessage defines an interface to set message into task result.