Documentation ¶
Index ¶
- func ConvertAppModelToBase(app *model.Application, projects []*apisv1.ProjectBase) *apisv1.ApplicationBase
- func ConvertComponentModelToBase(componentModel *model.ApplicationComponent) *apisv1.ComponentBase
- func ConvertEnvBindingModelToBase(envBinding *model.EnvBinding, env *model.Env, targets []*model.Target, ...) *apisv1.EnvBindingBase
- func ConvertFromRecordModel(record *model.WorkflowRecord) *apisv1.WorkflowRecord
- func ConvertFromWorkflowStepBaseModel(step model.WorkflowStepBase) apisv1.WorkflowStepBase
- func ConvertFromWorkflowStepModel(step model.WorkflowStep) apisv1.WorkflowStep
- func ConvertPermission2DTO(permission *model.Permission) *apisv1.PermissionBase
- func ConvertPolicyModelToBase(policy *model.ApplicationPolicy) *apisv1.PolicyBase
- func ConvertRevisionModelToBase(revision *model.ApplicationRevision, user *model.User) apisv1.ApplicationRevisionBase
- func ConvertRole2DTO(role *model.Role, policies []*model.Permission) *apisv1.RoleBase
- func ConvertToEnvBindingModel(app *model.Application, envBind apisv1.EnvBinding) *model.EnvBinding
- func ConvertWorkflowBase(workflow *model.Workflow) apisv1.WorkflowBase
- func CreateEnvBindingModel(app *model.Application, req apisv1.CreateApplicationEnvbindingRequest) model.EnvBinding
- func CreateWorkflowStepBaseModel(step apisv1.WorkflowStepBase) (*model.WorkflowStepBase, error)
- func CreateWorkflowStepModel(apiSteps []apisv1.WorkflowStep) ([]model.WorkflowStep, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAppModelToBase ¶
func ConvertAppModelToBase(app *model.Application, projects []*apisv1.ProjectBase) *apisv1.ApplicationBase
ConvertAppModelToBase assemble the Application model to DTO
func ConvertComponentModelToBase ¶
func ConvertComponentModelToBase(componentModel *model.ApplicationComponent) *apisv1.ComponentBase
ConvertComponentModelToBase assemble the ApplicationComponent model to DTO
func ConvertEnvBindingModelToBase ¶
func ConvertEnvBindingModelToBase(envBinding *model.EnvBinding, env *model.Env, targets []*model.Target, workflow *model.Workflow) *apisv1.EnvBindingBase
ConvertEnvBindingModelToBase assemble the DTO from EnvBinding model
func ConvertFromRecordModel ¶
func ConvertFromRecordModel(record *model.WorkflowRecord) *apisv1.WorkflowRecord
ConvertFromRecordModel assemble the WorkflowRecord model to DTO
func ConvertFromWorkflowStepBaseModel ¶ added in v1.6.0
func ConvertFromWorkflowStepBaseModel(step model.WorkflowStepBase) apisv1.WorkflowStepBase
ConvertFromWorkflowStepBaseModel assemble the WorkflowStep model to DTO
func ConvertFromWorkflowStepModel ¶
func ConvertFromWorkflowStepModel(step model.WorkflowStep) apisv1.WorkflowStep
ConvertFromWorkflowStepModel assemble the WorkflowStep model to DTO
func ConvertPermission2DTO ¶
func ConvertPermission2DTO(permission *model.Permission) *apisv1.PermissionBase
ConvertPermission2DTO convert permission model to the DTO
func ConvertPolicyModelToBase ¶
func ConvertPolicyModelToBase(policy *model.ApplicationPolicy) *apisv1.PolicyBase
ConvertPolicyModelToBase assemble the ApplicationPolicy model to DTO
func ConvertRevisionModelToBase ¶
func ConvertRevisionModelToBase(revision *model.ApplicationRevision, user *model.User) apisv1.ApplicationRevisionBase
ConvertRevisionModelToBase assemble the ApplicationRevision model to DTO
func ConvertRole2DTO ¶
ConvertRole2DTO convert role model to role base struct
func ConvertToEnvBindingModel ¶
func ConvertToEnvBindingModel(app *model.Application, envBind apisv1.EnvBinding) *model.EnvBinding
ConvertToEnvBindingModel assemble the EnvBinding model from DTO
func ConvertWorkflowBase ¶
func ConvertWorkflowBase(workflow *model.Workflow) apisv1.WorkflowBase
ConvertWorkflowBase assemble the Workflow model to DTO
func CreateEnvBindingModel ¶
func CreateEnvBindingModel(app *model.Application, req apisv1.CreateApplicationEnvbindingRequest) model.EnvBinding
CreateEnvBindingModel assemble the EnvBinding model from DTO
func CreateWorkflowStepBaseModel ¶ added in v1.6.0
func CreateWorkflowStepBaseModel(step apisv1.WorkflowStepBase) (*model.WorkflowStepBase, error)
CreateWorkflowStepBaseModel convert api to model
func CreateWorkflowStepModel ¶
func CreateWorkflowStepModel(apiSteps []apisv1.WorkflowStep) ([]model.WorkflowStep, error)
CreateWorkflowStepModel assemble the WorkflowStep model from DTO
Types ¶
This section is empty.