Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultOAMNS = "oam-system" DefaultOAMReleaseName = "vela-core" DefaultOAMRuntimeChartName = "vela-core" DefaultOAMVersion = ">0.0.0-0" DefaultEnvName = "default" DefaultAppNamespace = "default" )
View Source
const ( AnnAPIVersion = "definition.oam.dev/apiVersion" AnnKind = "definition.oam.dev/kind" // Indicate which workloadDefinition generate from AnnWorkloadDef = "workload.oam.dev/name" // Indicate which traitDefinition generate from AnnTraitDef = "trait.oam.dev/name" )
View Source
const ( StatusDeployed = "Deployed" StatusStaging = "Staging" )
View Source
const ( TagCommandType = "commandType" TypeStart = "Getting Started" TypeApp = "Applications" TypeTraits = "Traits" TypeRelease = "Release" TypeOthers = "Others" TypeSystem = "System" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Capability ¶
type Capability struct { Name string `json:"name"` Type CapType `json:"type"` CueTemplate string `json:"template,omitempty"` CueTemplateURI string `json:"templateURI,omitempty"` Parameters []Parameter `json:"parameters,omitempty"` DefinitionPath string `json:"definition"` CrdName string `json:"crdName,omitempty"` Center string `json:"center,omitempty"` Status string `json:"status,omitempty"` //trait only AppliesTo []string `json:"appliesTo,omitempty"` // Plugin Source Source *Source `json:"source,omitempty"` Install *Installation `json:"install,omitempty"` CrdInfo *CrdInfo `json:"crdInfo,omitempty"` }
Capability defines the content of a capability
func ConvertTemplateJSON2Object ¶
func ConvertTemplateJSON2Object(in *runtime.RawExtension) (Capability, error)
ConvertTemplateJSON2Object convert spec.extension to object
type Installation ¶
type Installation struct {
Helm Chart `json:"helm"`
}
Click to show internal directories.
Click to hide internal directories.