Documentation ¶
Index ¶
- func BulkWatchObject(kubeconfig *string, namespace string, gvrList []GVR) <-chan watch.Event
- type App
- type Config
- type Event
- type GVR
- type NextStep
- type NextSteps
- type StepCondition
- type Workflow
- type WorkflowInstance
- func (wi *WorkflowInstance) ExecuteWorkflow(handler handler.Handler)
- func (wi *WorkflowInstance) RegisterSteps(f func() map[string]func(handler handler.Handler))
- func (wi *WorkflowInstance) RegisterTrigger(f func(event Event) bool)
- func (wi *WorkflowInstance) RegisterWorkflowDefinition(f func() Workflow)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { WorkflowInstances []WorkflowInstance ModelGVRMap map[string]GVR StartAt time.Time }
func (*App) RegisterConfig ¶
func (*App) RegisterWorkflow ¶
type NextStep ¶
type NextStep struct { Name string `json:"name"` Condition StepCondition `json:"condition"` }
type StepCondition ¶
type Workflow ¶
type Workflow struct { Name string `json:"name"` StartAt string `json:"startAt"` Steps map[string]NextSteps `json:"steps"` }
func ParseDefinition ¶
type WorkflowInstance ¶
type WorkflowInstance struct { Workflow Workflow StepFunc map[string]func(handler handler.Handler) Trigger func(event Event) bool Kubeconfig *string WFObjName string }
func CreateWorkflowInstance ¶
func CreateWorkflowInstance() WorkflowInstance
func (*WorkflowInstance) ExecuteWorkflow ¶
func (wi *WorkflowInstance) ExecuteWorkflow(handler handler.Handler)
func (*WorkflowInstance) RegisterSteps ¶
func (wi *WorkflowInstance) RegisterSteps(f func() map[string]func(handler handler.Handler))
func (*WorkflowInstance) RegisterTrigger ¶
func (wi *WorkflowInstance) RegisterTrigger(f func(event Event) bool)
func (*WorkflowInstance) RegisterWorkflowDefinition ¶
func (wi *WorkflowInstance) RegisterWorkflowDefinition(f func() Workflow)
Click to show internal directories.
Click to hide internal directories.