Documentation ¶
Index ¶
- func BulkWatchObject(kubeconfig *string, namespace string, gvrList []GVR) <-chan watch.Event
- func ParseStepTrigger(st StepTriggerCondition, e Event) bool
- func ParseStepTriggerCondition(st StepTriggerCondition, e Event) bool
- func ParseTrigger(t TriggerCondition, e Event) bool
- func ParseTriggerCondition(t TriggerCondition, e Event) bool
- type App
- type Config
- type Event
- type ExecutorResponse
- type GVR
- type NextStep
- type Step
- type StepCondition
- type StepTriggerCondition
- type TriggerCondition
- type Workflow
- type WorkflowInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkWatchObject ¶ added in v0.1.6
func ParseStepTrigger ¶ added in v0.2.2
func ParseStepTrigger(st StepTriggerCondition, e Event) bool
func ParseStepTriggerCondition ¶ added in v0.2.2
func ParseStepTriggerCondition(st StepTriggerCondition, e Event) bool
func ParseTrigger ¶ added in v0.2.0
func ParseTrigger(t TriggerCondition, e Event) bool
func ParseTriggerCondition ¶ added in v0.2.2
func ParseTriggerCondition(t TriggerCondition, e Event) bool
Types ¶
type App ¶
type App struct { WorkflowInstances []WorkflowInstance ModelGVRMap map[string]GVR StartAt time.Time }
func (*App) RegisterConfig ¶
func (*App) RegisterWorkflow ¶
type ExecutorResponse ¶ added in v0.2.0
func ParseExecutorResponse ¶ added in v0.2.0
func ParseExecutorResponse(body []byte) ExecutorResponse
type NextStep ¶
type NextStep struct { Name string `json:"name"` Condition StepCondition `json:"condition"` }
type Step ¶ added in v0.2.2
type Step struct { Type string `json:"type"` StepTrigger StepTriggerCondition `json:"trigger"` NextSteps []NextStep `json:"nextSteps"` }
type StepCondition ¶
type StepTriggerCondition ¶ added in v0.2.2
type TriggerCondition ¶ added in v0.2.0
type Workflow ¶
type Workflow struct { Name string `json:"name"` StartAt string `json:"startAt"` Trigger TriggerCondition `json:"trigger"` Steps map[string]Step `json:"steps"` }
func ParseDefinition ¶
type WorkflowInstance ¶
type WorkflowInstance struct { Workflow Workflow Kubeconfig *string ModelObjName string StepTriggers []StepTriggerCondition }
todo remove all non-instance related field
func CreateWorkflowInstance ¶
func CreateWorkflowInstance() WorkflowInstance
func (*WorkflowInstance) ExecutePendingWorkflow ¶ added in v0.2.2
func (wi *WorkflowInstance) ExecutePendingWorkflow(handler handler.Handler, wfObjName string, currentStep string)
func (*WorkflowInstance) ExecuteWorkflow ¶
func (wi *WorkflowInstance) ExecuteWorkflow(handler handler.Handler, wfObjName string)
func (*WorkflowInstance) RegisterWorkflowDefinition ¶
func (wi *WorkflowInstance) RegisterWorkflowDefinition(f func() Workflow)
Click to show internal directories.
Click to hide internal directories.