package
0.1.13
Repository: https://github.com/tass-io/tass-operator.git
Documentation: pkg.go.dev

# Constants

Bool means the condition type is boolean.
Direct is the result of the flow go to downstream directly.
End means the role of the Flow is "end" which means it is the exit point of workflow instance.
Eq means the result is equal to the target.
Ge means the result is greater than or equal to the target, bool not accept.
Golang means the language environment is Golang.
Gt means the result is greater than the target, bool not accept.
Int means the condition type is int.
JavaScript means the language environment is JavaScript.
Le means the result is less than or equal to the target, bool not accept.
Lt means the result is less than the target, bool not accept.
Ne means the result is not equal to the target.
Orphan means the role of the Flow is "orphan" which is a special case that the workflow instance has only one function.
Python means the language environment is Python.
Start means the role of the Flow is "start" which means it is the entrance of workflow instance.
String means the condition type is string.
Switch is the result of the flow go to downstream based on the switch condition;.

# Variables

AddToScheme adds the types in this group-version to the given scheme.
GroupVersion is group version used to register these objects.
SchemeBuilder is used to add go types to the GroupVersionKind scheme.

# Structs

Condition is the control logic of the flow A sample of Condition ```yaml condition: name: root type: int operator: gt target: $.a comparison: 50 destination: isTrue: # ..
Destination defines the downstream Flows based on the condition result When a Flow finishes its task, the result of the Flow goes to the downstream Flows After passing a Condition, the Flows where result goes is determinated by Destination field The result can go to the downstream Flows directly, or it needs a new round of Conditions, or both.
Flow defines the logic of a Function in a workflow.
Function is the Schema for the functions API.
FunctionList contains a list of Function.
FunctionSpec defines the desired state of Function.
FunctionStatus defines the observed state of Function.
Instance records some runtime info of a Pod Specificly, it contains info about Function in the Pod and Pod metadata.
InstanceStatus describes metadata a Pod has.
Next shows the next Condition or Flows the data goes.
ProcessRuntime records the process runtime info.
Resource claims the resource provisioning for Function process.
WfrtStatus defines the observed state of WorkflowRuntime Now put this field into Spec to patch the status.
Workflow is the Schema for the workflows API.
WorkflowList contains a list of Workflow.
WorkflowRuntime is the Schema for the workflowruntimes API.
WorkflowRuntimeList contains a list of WorkflowRuntime.
WorkflowRuntimeSpec defines the desired state of WorkflowRuntime.
WorkflowRuntimeStatus defines the observed state of WorkflowRuntime.
WorkflowSpec defines the desired state of Workflow.
WorkflowStatus defines the observed state of Workflow.

# Type aliases

Comparison is used to compare with the flow result Comparison can be string, int or bool TODO: Validation needed.
ConditionType is the data type that Tass workflow condition support +kubebuilder:validation:Enum=string;int;bool.
Environment defines the language environments that tass supports +kubebuilder:validation:Enum=Golang;Python;JavaScript.
Instances is a Pod List that WorkflowRuntime manages When the Deployment created or updated, Instances should be updated The key is the name of the Pod, for example "sample-c65c4f67-skbml".
OperatorType defines the illegal operation in workflow condition statement +kubebuilder:validation:Enum=eq;ne;lt;le;gt;ge.
ProcessRuntimes is a list of ProcessRuntime The key is the name of the Function which is running in the Pod.
Role is the role of the Flow +kubebuilder:validation:Enum=start;end;orphan.
Statement shows the flow control logic type +kubebuilder:validation:Enum=direct;switch.