Documentation
¶
Index ¶
Constants ¶
View Source
const AppfileBuiltinConfig = "config"
AppfileBuiltinConfig defines the built-in config variable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appfile ¶
Appfile describes application
func (*Appfile) TemplateValidate ¶
TemplateValidate validate Template format
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is appfile parser
func NewParser ¶
func NewParser(cli defclient.DefinitionClient) *Parser
NewParser create appfile parser
type Render ¶
type Render interface {
// WithContext(ctx interface{}) Render
WithParams(params interface{}) Render
WithTemplate(raw string) Render
Complete() (*cue.Instance, error)
}
Render is cue render
type Scope ¶ added in v0.3.0
type Scope struct {
Name string
GVK schema.GroupVersionKind
}
Scope defines the scope of workload
type Workload ¶
type Workload struct {
Name string
Type string
Params map[string]interface{}
Template string
Traits []*Trait
Scopes []Scope
}
Workload is component
func (*Workload) EvalContext ¶ added in v0.2.2
EvalContext eval workload template and set result to context
func (*Workload) GetUserConfigName ¶ added in v0.3.0
GetUserConfigName get user config from AppFile, it will contain config file in it.
Click to show internal directories.
Click to hide internal directories.