github.com/oam-dev/kubevela@v1.9.11/pkg/cue/process/keyword.go (about)

     1  /*
     2  Copyright 2022 The KubeVela Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package process
    18  
    19  const (
    20  	// OutputFieldName is the reference of context base object
    21  	OutputFieldName = "output"
    22  	// OutputsFieldName is the reference of context Auxiliaries
    23  	OutputsFieldName = "outputs"
    24  	// ParameterFieldName is the keyword in CUE template to define users' input and the reference to the context parameter
    25  	ParameterFieldName = "parameter"
    26  	// ContextName is the name of context
    27  	ContextName = "name"
    28  	// ContextAppName is the appName of context
    29  	ContextAppName = "appName"
    30  	// ContextAppRevision is the revision name of app of context
    31  	ContextAppRevision = "appRevision"
    32  	// ContextAppRevisionNum is the revision num of app of context
    33  	ContextAppRevisionNum = "appRevisionNum"
    34  	// ContextAppLabels is the labels of app of context
    35  	ContextAppLabels = "appLabels"
    36  	// ContextAppAnnotations is the annotations of app of context
    37  	ContextAppAnnotations = "appAnnotations"
    38  	// ContextNamespace is the namespace of the app
    39  	ContextNamespace = "namespace"
    40  	// ContextCluster is the cluster currently focusing on
    41  	ContextCluster = "cluster"
    42  	// ContextClusterVersion is the version object info of cluster
    43  	ContextClusterVersion = "clusterVersion"
    44  	// ContextPublishVersion is the publish version of the app
    45  	ContextPublishVersion = "publishVersion"
    46  	// ContextWorkflowName is the name of the workflow
    47  	ContextWorkflowName = "workflowName"
    48  	// OutputSecretName is used to store all secret names which are generated by cloud resource components
    49  	OutputSecretName = "outputSecretName"
    50  	// ContextCompRevisionName is the component revision name of context
    51  	ContextCompRevisionName = "revision"
    52  	// ContextComponents is the components of app
    53  	ContextComponents = "components"
    54  	// ContextComponentType is the component type of current trait binding with
    55  	ContextComponentType = "componentType"
    56  	// ContextDataArtifacts is used to store unstructured resources of components
    57  	ContextDataArtifacts = "artifacts"
    58  	// ContextReplicaKey is the key of replication in context
    59  	ContextReplicaKey = "replicaKey"
    60  )