Documentation
¶
Index ¶
Constants ¶
View Source
const ( AcornCueFile = "Acornfile" Schema = "github.com/acorn-io/aml/schema/v1" AppType = "#App" )
Variables ¶
View Source
var ( TopFields = []string{ "labels", "annotations", "name", "description", "readme", "info", "icon", "containers", "jobs", "acorns", "secrets", "volumes", "images", "routers", "services", } Defaults = []byte(` args: { dev: bool | *false profiles: [...string] autoUpgrade: bool | *false } profiles: { devMode: dev: bool | *true autoUpgrade: autoUpgrade: bool | *true } `) )
Functions ¶
func NewAcornfile ¶
Types ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func NewDefinition ¶
func NewDefinition(files []cue.File) (*Definition, error)
func (*Definition) Args ¶
func (a *Definition) Args() (*ParamSpec, error)
func (*Definition) Decode ¶
func (a *Definition) Decode(out interface{}) error
func (*Definition) WithArgs ¶
func (a *Definition) WithArgs(args map[string]any, profiles []string) (*Definition, map[string]any, error)
Click to show internal directories.
Click to hide internal directories.