Documentation
¶
Index ¶
- func BulkWatchObject(kubeconfig *string, namespace string, gvrList []GVR) <-chan watch.Event
- func ParseTrigger(t TriggerCondition, e Event) bool
- type App
- type Config
- type Event
- type ExecutorResponse
- type GVR
- type NextStep
- type NextSteps
- type StepCondition
- 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 ParseTrigger ¶ added in v0.2.0
func ParseTrigger(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 StepCondition ¶
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]NextSteps `json:"steps"` }
func ParseDefinition ¶
type WorkflowInstance ¶
func CreateWorkflowInstance ¶
func CreateWorkflowInstance() WorkflowInstance
func (*WorkflowInstance) ExecuteWorkflow ¶
func (wi *WorkflowInstance) ExecuteWorkflow(handler handler.Handler)
func (*WorkflowInstance) RegisterWorkflowDefinition ¶
func (wi *WorkflowInstance) RegisterWorkflowDefinition(f func() Workflow)
Click to show internal directories.
Click to hide internal directories.