Documentation
¶
Index ¶
- Variables
- func ApproverToAPI(approver model.WorkflowApprover) (cmkapi.WorkflowApprover, error)
- func FromAPI(ctx context.Context, apiWorkflow cmkapi.WorkflowBody, ...) (*model.Workflow, error)
- func ToAPI(w model.Workflow) (*cmkapi.Workflow, error)
- func ToAPIDetailed(w model.Workflow, approvers []*model.WorkflowApprover, ...) (*cmkapi.DetailedWorkflow, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExpiryGreaterThanMaximum = errors.New("expiry exceeds maximum")
Functions ¶
func ApproverToAPI ¶
func ApproverToAPI(approver model.WorkflowApprover) (cmkapi.WorkflowApprover, error)
ApproverToAPI converts a workflow approver model to an API workflow approver presentation.
func FromAPI ¶
func FromAPI( ctx context.Context, apiWorkflow cmkapi.WorkflowBody, defaultExpiryPeriod, maxExpiryPeriod int, ) (*model.Workflow, error)
FromAPI converts an API workflow presentation to a workflow model.
func ToAPIDetailed ¶
func ToAPIDetailed( w model.Workflow, approvers []*model.WorkflowApprover, approverGroups []*model.Group, transitions []wfMechanism.Transition, approvalSummary *wfMechanism.ApprovalSummary, ) (*cmkapi.DetailedWorkflow, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.