Documentation ¶
Index ¶
- func CheckPending(ctx wfContext.Context, step v1beta1.WorkflowStep, id string, ...) (bool, common.StepStatus)
- func MakeValueForContext(ctx wfContext.Context, pd *packages.PackageDiscover, id string, ...) (*value.Value, error)
- func OpTpy(v *value.Value) string
- func ValidateIfValue(ctx wfContext.Context, step v1beta1.WorkflowStep, ...) (bool, error)
- type LoadTaskTemplate
- type TaskLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPending ¶ added in v1.4.0
func CheckPending(ctx wfContext.Context, step v1beta1.WorkflowStep, id string, stepStatus map[string]common.StepStatus) (bool, common.StepStatus)
CheckPending checks whether to pending task run
func MakeValueForContext ¶ added in v1.5.0
func MakeValueForContext(ctx wfContext.Context, pd *packages.PackageDiscover, id string, pCtx process.Context) (*value.Value, error)
MakeValueForContext makes context value
func ValidateIfValue ¶ added in v1.5.0
func ValidateIfValue(ctx wfContext.Context, step v1beta1.WorkflowStep, stepStatus map[string]common.StepStatus, options *wfTypes.PreCheckOptions) (bool, error)
ValidateIfValue validates the if value
Types ¶
type LoadTaskTemplate ¶
LoadTaskTemplate gets the workflowStep definition from cluster and resolve it.
type TaskLoader ¶
type TaskLoader struct {
// contains filtered or unexported fields
}
TaskLoader is a client that get taskGenerator.
func NewTaskLoader ¶
func NewTaskLoader(lt LoadTaskTemplate, pkgDiscover *packages.PackageDiscover, handlers providers.Providers, logLevel int, pCtx process.Context) *TaskLoader
NewTaskLoader create a tasks loader.
func (*TaskLoader) GetTaskGenerator ¶
func (t *TaskLoader) GetTaskGenerator(ctx context.Context, name string) (wfTypes.TaskGenerator, error)
GetTaskGenerator get TaskGenerator by name.
Click to show internal directories.
Click to hide internal directories.