Documentation
¶
Index ¶
- type MemoryStorage
- func (s *MemoryStorage) AppendCompensationRecord(ctx context.Context, namespace string, rec *models.CompensationRecord) error
- func (s *MemoryStorage) ClaimReadyStep(ctx context.Context, namespace string, workerID string) (*models.ExecutionStep, error)
- func (s *MemoryStorage) CreateExecution(ctx context.Context, namespace string, exec *models.Execution) error
- func (s *MemoryStorage) CreateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
- func (s *MemoryStorage) DeleteSchedule(ctx context.Context, namespace, id string) error
- func (s *MemoryStorage) GetActiveSchedules(ctx context.Context) ([]*models.Schedule, error)
- func (s *MemoryStorage) GetExecution(ctx context.Context, namespace string, id string) (*models.Execution, error)
- func (s *MemoryStorage) GetExecutionStepByNode(ctx context.Context, namespace, executionID, nodeID string) (*models.ExecutionStep, error)
- func (s *MemoryStorage) GetExecutionSteps(ctx context.Context, namespace string, executionID string) ([]*models.ExecutionStep, error)
- func (s *MemoryStorage) GetSchedule(ctx context.Context, namespace, id string) (*models.Schedule, error)
- func (s *MemoryStorage) GetWorkflow(ctx context.Context, namespace string, id string) (*models.Workflow, error)
- func (s *MemoryStorage) HeartbeatStep(ctx context.Context, namespace, stepID, workerID string) (bool, error)
- func (s *MemoryStorage) ListCompensationRecords(ctx context.Context, namespace, executionID string) ([]*models.CompensationRecord, error)
- func (s *MemoryStorage) ListExecutions(ctx context.Context, namespace string) ([]*models.Execution, error)
- func (s *MemoryStorage) ListSchedules(ctx context.Context, namespace string, filter storage.ScheduleFilter) ([]*models.Schedule, error)
- func (s *MemoryStorage) ListWaitingSteps(ctx context.Context, namespace string, filter storage.TaskFilter) ([]*models.ExecutionStep, error)
- func (s *MemoryStorage) ListWorkflows(ctx context.Context, namespace string) ([]*models.Workflow, error)
- func (s *MemoryStorage) RecordScheduleRun(ctx context.Context, namespace, id string, fireAt time.Time, ...) error
- func (s *MemoryStorage) SaveSchedule(ctx context.Context, sched *models.Schedule) error
- func (s *MemoryStorage) SaveWorkflow(ctx context.Context, namespace string, wf *models.Workflow) error
- func (s *MemoryStorage) TryClaimScheduleRun(ctx context.Context, namespace, id string, fireAt time.Time) (bool, error)
- func (s *MemoryStorage) UpdateExecution(ctx context.Context, namespace string, exec *models.Execution) error
- func (s *MemoryStorage) UpdateExecutionIf(ctx context.Context, namespace string, exec *models.Execution, ...) (bool, error)
- func (s *MemoryStorage) UpdateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
- func (s *MemoryStorage) 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 MemoryStorage ¶
type MemoryStorage struct {
ZombieThreshold time.Duration
// contains filtered or unexported fields
}
func NewMemoryStorage ¶
func NewMemoryStorage() *MemoryStorage
func (*MemoryStorage) AppendCompensationRecord ¶
func (s *MemoryStorage) AppendCompensationRecord(ctx context.Context, namespace string, rec *models.CompensationRecord) error
func (*MemoryStorage) ClaimReadyStep ¶
func (s *MemoryStorage) ClaimReadyStep(ctx context.Context, namespace string, workerID string) (*models.ExecutionStep, error)
func (*MemoryStorage) CreateExecution ¶
func (*MemoryStorage) CreateExecutionStep ¶
func (s *MemoryStorage) CreateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
func (*MemoryStorage) DeleteSchedule ¶
func (s *MemoryStorage) DeleteSchedule(ctx context.Context, namespace, id string) error
func (*MemoryStorage) GetActiveSchedules ¶
func (*MemoryStorage) GetExecution ¶
func (*MemoryStorage) GetExecutionStepByNode ¶
func (s *MemoryStorage) GetExecutionStepByNode(ctx context.Context, namespace, executionID, nodeID string) (*models.ExecutionStep, error)
func (*MemoryStorage) GetExecutionSteps ¶
func (s *MemoryStorage) GetExecutionSteps(ctx context.Context, namespace string, executionID string) ([]*models.ExecutionStep, error)
func (*MemoryStorage) GetSchedule ¶
func (*MemoryStorage) GetWorkflow ¶
func (*MemoryStorage) HeartbeatStep ¶
func (s *MemoryStorage) HeartbeatStep(ctx context.Context, namespace, stepID, workerID string) (bool, error)
HeartbeatStep extends the lease of a RUNNING step owned by workerID.
func (*MemoryStorage) ListCompensationRecords ¶
func (s *MemoryStorage) ListCompensationRecords(ctx context.Context, namespace, executionID string) ([]*models.CompensationRecord, error)
func (*MemoryStorage) ListExecutions ¶
func (*MemoryStorage) ListSchedules ¶
func (s *MemoryStorage) ListSchedules(ctx context.Context, namespace string, filter storage.ScheduleFilter) ([]*models.Schedule, error)
func (*MemoryStorage) ListWaitingSteps ¶
func (s *MemoryStorage) ListWaitingSteps(ctx context.Context, namespace string, filter storage.TaskFilter) ([]*models.ExecutionStep, error)
func (*MemoryStorage) ListWorkflows ¶
func (*MemoryStorage) RecordScheduleRun ¶
func (*MemoryStorage) SaveSchedule ¶
func (*MemoryStorage) SaveWorkflow ¶
func (*MemoryStorage) TryClaimScheduleRun ¶
func (*MemoryStorage) UpdateExecution ¶
func (*MemoryStorage) UpdateExecutionIf ¶
func (s *MemoryStorage) UpdateExecutionIf(ctx context.Context, namespace string, exec *models.Execution, from models.TaskStatus) (bool, error)
UpdateExecutionIf implements storage.ConditionalUpdater.
func (*MemoryStorage) UpdateExecutionStep ¶
func (s *MemoryStorage) UpdateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error
func (*MemoryStorage) UpdateExecutionStepIf ¶
func (s *MemoryStorage) 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.