v1

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func ConvertRole2DTO(role *model.Role, policies []*model.Permission) *apisv1.RoleBase

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 ConvertTrigger2DTO added in v1.7.1

func ConvertTrigger2DTO(trigger model.ApplicationTrigger) *apisv1.ApplicationTriggerBase

ConvertTrigger2DTO convert trigger model to the DTO

func ConvertWorkflowBase

func ConvertWorkflowBase(workflow *model.Workflow) apisv1.WorkflowBase

ConvertWorkflowBase assemble the Workflow model to DTO

func CreateEnvBindingModel

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL