Documentation ¶
Index ¶
- Constants
- func GetStepManager(opts types.CreateOptions) (types.StepManager, error)
- func NewApprovalStepManager(opts types.CreateOptions) types.StepManager
- func NewServiceStepManager(opts types.CreateOptions) types.StepManager
- func StepTemplateName(stepExecution *model.WorkflowStepExecution) string
- type ApprovalStepManager
- type ServiceStepManager
Constants ¶
View Source
const StepNamePrefix = "workflow-step-execution-"
Variables ¶
This section is empty.
Functions ¶
func GetStepManager ¶
func GetStepManager(opts types.CreateOptions) (types.StepManager, error)
func NewApprovalStepManager ¶
func NewApprovalStepManager(opts types.CreateOptions) types.StepManager
func NewServiceStepManager ¶
func NewServiceStepManager(opts types.CreateOptions) types.StepManager
NewServiceStepManager.
func StepTemplateName ¶
func StepTemplateName(stepExecution *model.WorkflowStepExecution) string
Types ¶
type ApprovalStepManager ¶
type ApprovalStepManager struct {
// contains filtered or unexported fields
}
func (*ApprovalStepManager) GenerateTemplates ¶
func (m *ApprovalStepManager) GenerateTemplates( ctx context.Context, stepExecution *model.WorkflowStepExecution, ) (main *wfv1.Template, subTemplates []*wfv1.Template, err error)
type ServiceStepManager ¶
type ServiceStepManager struct {
// contains filtered or unexported fields
}
ServiceStepManager is service to generate service configs.
func (*ServiceStepManager) GenerateTemplates ¶
func (s *ServiceStepManager) GenerateTemplates( ctx context.Context, stepExecution *model.WorkflowStepExecution, ) (main *wfv1.Template, subTemplates []*wfv1.Template, err error)
GenerateTemplates generate service templates. If service exist in environment, job type is upgrade. Otherwise, job type is create.
Click to show internal directories.
Click to hide internal directories.