Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UsagePrefix defines the usage display for KubeVela CLI UsagePrefix = "+usage=" // ShortPrefix defines the short argument for KubeVela CLI ShortPrefix = "+short=" // AliasPrefix is an alias of the name of a parameter element, in order to making it more friendly to Cli users AliasPrefix = "+alias=" )
View Source
const BaseTemplate = `
context: {
name: string
config?: [...{
name: string
value: string
}]
}
`
BaseTemplate include base info provided by KubeVela for CUE template
View Source
const OutputFieldName = "output"
OutputFieldName is the name of the struct contains the CR data
Variables ¶
This section is empty.
Functions ¶
func Eval ¶
func Eval(templatePath string, value map[string]interface{}) (*unstructured.Unstructured, error)
Eval evaluates the spec with the parameter values
func GetDefault ¶
GetDefault evaluate default Go value from CUE
func GetParameters ¶
GetParameters get parameter from cue template
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.