Documentation ¶
Index ¶
- func FromCRApplicationRevision(ctx context.Context, cli client.Client, app *v1beta1.Application, ...) *model.ApplicationRevision
- func FromCRComponent(appPrimaryKey string, component common.ApplicationComponent) (model.ApplicationComponent, error)
- func FromCRPolicy(appPrimaryKey string, policyCR v1beta1.AppPolicy, creator string) (model.ApplicationPolicy, error)
- func FromCRTargets(ctx context.Context, cli client.Client, targetApp *v1beta1.Application, ...) ([]*model.Target, map[string]string)
- func FromCRWorkflow(ctx context.Context, cli client.Client, appPrimaryKey string, ...) (model.Workflow, []workflowv1alpha1.WorkflowStep, error)
- func FromCRWorkflowRecord(app *v1beta1.Application, workflow model.Workflow, ...) *model.WorkflowRecord
- func FromCRWorkflowStepBase(step workflowv1alpha1.WorkflowStepBase) (*model.WorkflowStepBase, error)
- func FromCRWorkflowStepStatus(stepStatus workflowv1alpha1.StepStatus, alias string) model.StepStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCRApplicationRevision ¶
func FromCRApplicationRevision(ctx context.Context, cli client.Client, app *v1beta1.Application, workflow model.Workflow, envName string) *model.ApplicationRevision
FromCRApplicationRevision convert the application revision to the revision in the data store
func FromCRComponent ¶
func FromCRComponent(appPrimaryKey string, component common.ApplicationComponent) (model.ApplicationComponent, error)
FromCRComponent concerts Application CR Component object into velaux data store component
func FromCRPolicy ¶
func FromCRPolicy(appPrimaryKey string, policyCR v1beta1.AppPolicy, creator string) (model.ApplicationPolicy, error)
FromCRPolicy converts Application CR Policy object into velaux data store policy
func FromCRTargets ¶
func FromCRTargets(ctx context.Context, cli client.Client, targetApp *v1beta1.Application, existTargets []datastore.Entity, project string) ([]*model.Target, map[string]string)
FromCRTargets converts deployed Cluster/Namespace from Application CR Status into velaux data store
func FromCRWorkflow ¶
func FromCRWorkflow(ctx context.Context, cli client.Client, appPrimaryKey string, app *v1beta1.Application, envName string) (model.Workflow, []workflowv1alpha1.WorkflowStep, error)
FromCRWorkflow converts Application CR Workflow section into velaux data store workflow
func FromCRWorkflowRecord ¶
func FromCRWorkflowRecord(app *v1beta1.Application, workflow model.Workflow, revision *model.ApplicationRevision) *model.WorkflowRecord
FromCRWorkflowRecord convert the workflow status to workflow record
func FromCRWorkflowStepBase ¶
func FromCRWorkflowStepBase(step workflowv1alpha1.WorkflowStepBase) (*model.WorkflowStepBase, error)
FromCRWorkflowStepBase convert cr to model
func FromCRWorkflowStepStatus ¶
func FromCRWorkflowStepStatus(stepStatus workflowv1alpha1.StepStatus, alias string) model.StepStatus
FromCRWorkflowStepStatus convert the workflow step status to workflow step status
Types ¶
This section is empty.