Documentation
¶
Index ¶
- type RedisStorage
- func (r *RedisStorage) AppendCompensationRecord(ctx context.Context, namespace string, rec *models.CompensationRecord) error
- func (r *RedisStorage) ClaimReadyStep(ctx context.Context, namespace string, workerID string) (*models.ExecutionStep, error)
- func (r *RedisStorage) CreateExecution(ctx context.Context, namespace string, exec *models.Execution) error
- func (r *RedisStorage) CreateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
- func (r *RedisStorage) DeleteSchedule(ctx context.Context, namespace, id string) error
- func (r *RedisStorage) GetActiveSchedules(ctx context.Context) ([]*models.Schedule, error)
- func (r *RedisStorage) GetExecution(ctx context.Context, namespace string, id string) (*models.Execution, error)
- func (r *RedisStorage) GetExecutionStepByID(ctx context.Context, namespace string, id string) (*models.ExecutionStep, error)
- func (r *RedisStorage) GetExecutionStepByNode(ctx context.Context, namespace, executionID, nodeID string) (*models.ExecutionStep, error)
- func (r *RedisStorage) GetExecutionSteps(ctx context.Context, namespace string, executionID string) ([]*models.ExecutionStep, error)
- func (r *RedisStorage) GetSchedule(ctx context.Context, namespace, id string) (*models.Schedule, error)
- func (r *RedisStorage) GetWorkflow(ctx context.Context, namespace string, id string) (*models.Workflow, error)
- func (r *RedisStorage) HeartbeatStep(ctx context.Context, namespace, stepID, workerID string) (bool, error)
- func (r *RedisStorage) ListCompensationRecords(ctx context.Context, namespace, executionID string) ([]*models.CompensationRecord, error)
- func (r *RedisStorage) ListExecutions(ctx context.Context, namespace string) ([]*models.Execution, error)
- func (r *RedisStorage) ListSchedules(ctx context.Context, namespace string, filter storage.ScheduleFilter) ([]*models.Schedule, error)
- func (r *RedisStorage) ListWaitingSteps(ctx context.Context, namespace string, filter storage.TaskFilter) ([]*models.ExecutionStep, error)
- func (r *RedisStorage) ListWorkflows(ctx context.Context, namespace string) ([]*models.Workflow, error)
- func (r *RedisStorage) RecordScheduleRun(ctx context.Context, namespace, id string, fireAt time.Time, ...) error
- func (r *RedisStorage) SaveSchedule(ctx context.Context, sched *models.Schedule) error
- func (r *RedisStorage) SaveWorkflow(ctx context.Context, namespace string, wf *models.Workflow) error
- func (r *RedisStorage) SetEncryption(crypto *storage.Crypto)
- func (r *RedisStorage) TryClaimScheduleRun(ctx context.Context, namespace, id string, fireAt time.Time) (bool, error)
- func (r *RedisStorage) UpdateExecution(ctx context.Context, namespace string, exec *models.Execution) error
- func (r *RedisStorage) UpdateExecutionIf(ctx context.Context, namespace string, exec *models.Execution, ...) (bool, error)
- func (r *RedisStorage) UpdateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
- func (r *RedisStorage) UpdateExecutionStepIf(ctx context.Context, namespace string, step *models.ExecutionStep, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func NewRedisStorage ¶
func NewRedisStorage(addr string, password string, db int) *RedisStorage
func (*RedisStorage) AppendCompensationRecord ¶
func (r *RedisStorage) AppendCompensationRecord(ctx context.Context, namespace string, rec *models.CompensationRecord) error
func (*RedisStorage) ClaimReadyStep ¶
func (r *RedisStorage) ClaimReadyStep(ctx context.Context, namespace string, workerID string) (*models.ExecutionStep, error)
func (*RedisStorage) CreateExecution ¶
func (*RedisStorage) CreateExecutionStep ¶
func (r *RedisStorage) CreateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
func (*RedisStorage) DeleteSchedule ¶
func (r *RedisStorage) DeleteSchedule(ctx context.Context, namespace, id string) error
func (*RedisStorage) GetActiveSchedules ¶
func (*RedisStorage) GetExecution ¶
func (*RedisStorage) GetExecutionStepByID ¶
func (r *RedisStorage) GetExecutionStepByID(ctx context.Context, namespace string, id string) (*models.ExecutionStep, error)
func (*RedisStorage) GetExecutionStepByNode ¶
func (r *RedisStorage) GetExecutionStepByNode(ctx context.Context, namespace, executionID, nodeID string) (*models.ExecutionStep, error)
func (*RedisStorage) GetExecutionSteps ¶
func (r *RedisStorage) GetExecutionSteps(ctx context.Context, namespace string, executionID string) ([]*models.ExecutionStep, error)
func (*RedisStorage) GetSchedule ¶
func (*RedisStorage) GetWorkflow ¶
func (*RedisStorage) HeartbeatStep ¶
func (r *RedisStorage) HeartbeatStep(ctx context.Context, namespace, stepID, workerID string) (bool, error)
HeartbeatStep extends the lease of a RUNNING step owned by workerID.
func (*RedisStorage) ListCompensationRecords ¶
func (r *RedisStorage) ListCompensationRecords(ctx context.Context, namespace, executionID string) ([]*models.CompensationRecord, error)
func (*RedisStorage) ListExecutions ¶
func (*RedisStorage) ListSchedules ¶
func (r *RedisStorage) ListSchedules(ctx context.Context, namespace string, filter storage.ScheduleFilter) ([]*models.Schedule, error)
func (*RedisStorage) ListWaitingSteps ¶
func (r *RedisStorage) ListWaitingSteps(ctx context.Context, namespace string, filter storage.TaskFilter) ([]*models.ExecutionStep, error)
func (*RedisStorage) ListWorkflows ¶
func (*RedisStorage) RecordScheduleRun ¶
func (*RedisStorage) SaveSchedule ¶
func (*RedisStorage) SaveWorkflow ¶
func (*RedisStorage) SetEncryption ¶
func (r *RedisStorage) SetEncryption(crypto *storage.Crypto)
func (*RedisStorage) TryClaimScheduleRun ¶
func (*RedisStorage) UpdateExecution ¶
func (*RedisStorage) UpdateExecutionIf ¶
func (r *RedisStorage) UpdateExecutionIf(ctx context.Context, namespace string, exec *models.Execution, from models.TaskStatus) (bool, error)
UpdateExecutionIf implements storage.ConditionalUpdater.
func (*RedisStorage) UpdateExecutionStep ¶
func (r *RedisStorage) UpdateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
func (*RedisStorage) UpdateExecutionStepIf ¶
func (r *RedisStorage) UpdateExecutionStepIf(ctx context.Context, namespace string, step *models.ExecutionStep, from models.TaskStatus, worker string) (bool, error)
UpdateExecutionStepIf implements storage.ConditionalUpdater.
Click to show internal directories.
Click to hide internal directories.