Documentation
¶
Index ¶
- type AwaitStore
- func (s *AwaitStore) CreateBinding(_ context.Context, binding store.AwaitBinding) error
- func (s *AwaitStore) FindByProviderTaskID(_ context.Context, providerTaskID string) (*store.AwaitBinding, error)
- func (s *AwaitStore) ListByTask(_ context.Context, taskID string) ([]store.AwaitBinding, error)
- func (s *AwaitStore) ListPending(_ context.Context) ([]store.AwaitBinding, error)
- func (s *AwaitStore) ResolveBinding(_ context.Context, bindingID string) (bool, error)
- type TraceStore
- type WorkflowStore
- func (s *WorkflowStore) CreateRun(_ context.Context, meta store.RunMeta) (*store.WorkflowRun, error)
- func (s *WorkflowStore) CreateTask(_ context.Context, runID string, meta store.TaskMeta) (*store.Task, error)
- func (s *WorkflowStore) ListTasks(_ context.Context, runID string) ([]store.Task, error)
- func (s *WorkflowStore) LoadNodeStates(_ context.Context, taskID string) ([]store.NodeRecord, error)
- func (s *WorkflowStore) LoadPlan(_ context.Context, taskID string) (*runtime.Plan, error)
- func (s *WorkflowStore) LoadRun(_ context.Context, runID string) (*store.WorkflowRun, error)
- func (s *WorkflowStore) LoadTask(_ context.Context, taskID string) (*store.Task, error)
- func (s *WorkflowStore) PersistNode(_ context.Context, taskID string, nodeName string, state runtime.NodeState, ...) error
- func (s *WorkflowStore) SavePlan(_ context.Context, taskID string, plan *runtime.Plan) error
- func (s *WorkflowStore) UpdateRunStatus(_ context.Context, runID string, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwaitStore ¶
type AwaitStore struct {
// contains filtered or unexported fields
}
AwaitStore 是 AwaitStore 的纯内存实现。用于测试。
func NewAwaitStore ¶
func NewAwaitStore() *AwaitStore
func (*AwaitStore) CreateBinding ¶
func (s *AwaitStore) CreateBinding(_ context.Context, binding store.AwaitBinding) error
func (*AwaitStore) FindByProviderTaskID ¶
func (s *AwaitStore) FindByProviderTaskID(_ context.Context, providerTaskID string) (*store.AwaitBinding, error)
func (*AwaitStore) ListByTask ¶
func (s *AwaitStore) ListByTask(_ context.Context, taskID string) ([]store.AwaitBinding, error)
func (*AwaitStore) ListPending ¶
func (s *AwaitStore) ListPending(_ context.Context) ([]store.AwaitBinding, error)
func (*AwaitStore) ResolveBinding ¶
type TraceStore ¶
type TraceStore struct {
// contains filtered or unexported fields
}
TraceStore 是 TraceStore 的纯内存实现。用于测试。
func NewTraceStore ¶
func NewTraceStore() *TraceStore
func (*TraceStore) AppendTrace ¶
func (s *TraceStore) AppendTrace(_ context.Context, taskID string, events []runtime.TraceEvent) error
func (*TraceStore) ReplayTrace ¶
func (s *TraceStore) ReplayTrace(_ context.Context, taskID string, sinceSeq int64) ([]runtime.TraceEvent, error)
type WorkflowStore ¶
type WorkflowStore struct {
// contains filtered or unexported fields
}
WorkflowStore 是 WorkflowStore 的纯内存实现。用于测试。
func NewWorkflowStore ¶
func NewWorkflowStore() *WorkflowStore
func (*WorkflowStore) CreateRun ¶
func (s *WorkflowStore) CreateRun(_ context.Context, meta store.RunMeta) (*store.WorkflowRun, error)
func (*WorkflowStore) CreateTask ¶
func (*WorkflowStore) LoadNodeStates ¶
func (s *WorkflowStore) LoadNodeStates(_ context.Context, taskID string) ([]store.NodeRecord, error)
func (*WorkflowStore) LoadRun ¶
func (s *WorkflowStore) LoadRun(_ context.Context, runID string) (*store.WorkflowRun, error)
func (*WorkflowStore) PersistNode ¶
func (*WorkflowStore) UpdateRunStatus ¶
Click to show internal directories.
Click to hide internal directories.