Documentation ¶
Index ¶
- func BulkWatchObject(kubeconfig *string, namespace string, gvrList []GVR) <-chan watch.Event
- func ParseStepTrigger(st StepTriggerCondition, e Event) (bool, error)
- func ParseTrigger(t TriggerCondition, e Event) (bool, error)
- func ParseTriggerCondition(input string, e Event) (bool, error)
- 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, error)
func ParseTrigger ¶ added in v0.2.0
func ParseTrigger(t TriggerCondition, e Event) (bool, error)
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, error)
type Step ¶ added in v0.2.2
type Step struct { Type string `json:"type"` StepTrigger StepTriggerCondition `json:"trigger"` Inputs []string `json:"inputs"` Condition string `json:"condition"` 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"` }
type WorkflowInstance ¶
type WorkflowInstance struct { Workflow Workflow StepTriggers []StepTriggerCondition }
func CreateWorkflowInstance ¶
func CreateWorkflowInstance() WorkflowInstance
func (*WorkflowInstance) ExecuteWorkflow ¶
func (*WorkflowInstance) RegisterWorkflowDefinition ¶
func (wi *WorkflowInstance) RegisterWorkflowDefinition(f func() Workflow)
Click to show internal directories.
Click to hide internal directories.