Documentation ¶
Index ¶
- type Context
- func (self *Context) AddFile(file *File)
- func (self *Context) AddHierarchies()
- func (self *Context) AddImportFile(context contextpkg.Context, entityPtr parsing.EntityPtr, container *File, ...) *File
- func (self *Context) AddNamespaces()
- func (self *Context) Gather(pattern string) parsing.EntityPtrs
- func (self *Context) GetProblems() *problems.Problems
- func (self *Context) Inherit(debug func(Tasks))
- func (self *Context) LookupNames()
- func (self *Context) MergeProblems()
- func (self *Context) Normalize() (*normal.ServiceTemplate, bool)
- func (self *Context) Parse(context contextpkg.Context) (*normal.ServiceTemplate, error)
- func (self *Context) PrintHierarchies(indent int)
- func (self *Context) PrintImports(indent int)
- func (self *Context) PrintNamespaces(indent int)
- func (self *Context) ReadRoot(context contextpkg.Context, url exturl.URL, bases []exturl.URL, ...) bool
- func (self *Context) Render() parsing.EntityPtrs
- func (self *Context) SetInputs(inputs map[string]ard.Value)
- func (self *Context) TraverseEntities(log commonlog.Logger, work reflection.EntityWork, ...)
- type Executor
- type File
- type Files
- type InheritContext
- type InheritField
- type InheritFields
- type LookupField
- type LookupName
- type LookupProblems
- type Parser
- type Task
- func (self *Task) AddDependency(task *Task)
- func (self *Task) Done()
- func (self *Task) Execute()
- func (self *Task) IsIndependent() bool
- func (self *Task) Print(indent int)
- func (self *Task) PrintDependencies(indent int, treePrefix terminal.TreePrefix)
- func (self *Task) PrintDependency(indent int, treePrefix terminal.TreePrefix, last bool)
- type TaskList
- type Tasks
- type TasksForEntities
- type YAMLDecodeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Parser *Parser URL exturl.URL Bases []exturl.URL Quirks parsing.Quirks Inputs map[string]ard.Value Stylist *terminal.Stylist Root *File Files Files // contains filtered or unexported fields }
func (*Context) AddHierarchies ¶
func (self *Context) AddHierarchies()
func (*Context) AddImportFile ¶ added in v0.22.3
func (self *Context) AddImportFile(context contextpkg.Context, entityPtr parsing.EntityPtr, container *File, nameTransformer parsing.NameTransformer) *File
func (*Context) AddNamespaces ¶
func (self *Context) AddNamespaces()
func (*Context) GetProblems ¶
func (*Context) LookupNames ¶
func (self *Context) LookupNames()
func (*Context) MergeProblems ¶ added in v0.15.0
func (self *Context) MergeProblems()
func (*Context) Normalize ¶ added in v0.22.3
func (self *Context) Normalize() (*normal.ServiceTemplate, bool)
func (*Context) Parse ¶ added in v0.20.0
func (self *Context) Parse(context contextpkg.Context) (*normal.ServiceTemplate, error)
func (*Context) PrintHierarchies ¶
func (*Context) PrintImports ¶
func (*Context) PrintNamespaces ¶
func (*Context) Render ¶
func (self *Context) Render() parsing.EntityPtrs
func (*Context) TraverseEntities ¶ added in v0.22.3
func (self *Context) TraverseEntities(log commonlog.Logger, work reflection.EntityWork, traverse reflection.EntityTraverser)
type File ¶ added in v0.21.0
type File struct { EntityPtr parsing.EntityPtr Container *File Imports Files NameTransformer parsing.NameTransformer // contains filtered or unexported fields }
func NewEmptyFile ¶ added in v0.22.3
func (*File) GetContext ¶ added in v0.21.0
func (*File) PrintImports ¶ added in v0.21.0
func (self *File) PrintImports(indent int, treePrefix terminal.TreePrefix)
type InheritContext ¶
type InheritContext struct { Tasks Tasks TasksForEntities TasksForEntities InheritFields InheritFields }
func NewInheritContext ¶
func NewInheritContext() *InheritContext
func (*InheritContext) GetDependencies ¶
func (self *InheritContext) GetDependencies(entityPtr parsing.EntityPtr) parsing.EntityPtrSet
func (*InheritContext) GetInheritTask ¶
func (self *InheritContext) GetInheritTask(entityPtr parsing.EntityPtr) *Task
func (*InheritContext) NewExecutor ¶
func (self *InheritContext) NewExecutor(entityPtr parsing.EntityPtr) Executor
type InheritField ¶
type InheritField struct { Entity reflect.Value Key string Field reflect.Value ParentEntityPtr parsing.EntityPtr ParentField reflect.Value }
func NewInheritFields ¶
func NewInheritFields(entityPtr parsing.EntityPtr) []*InheritField
From "inherit" tags
func (*InheritField) Inherit ¶
func (self *InheritField) Inherit()
func (*InheritField) InheritEntity ¶
func (self *InheritField) InheritEntity()
Field is compatible with *any
func (*InheritField) InheritStringsFromMap ¶
func (self *InheritField) InheritStringsFromMap()
Field is *map[string]string
func (*InheritField) InheritStringsFromSlice ¶
func (self *InheritField) InheritStringsFromSlice()
Field is *[]string
func (*InheritField) InheritStructsFromMap ¶
func (self *InheritField) InheritStructsFromMap()
Field is compatible with map[string]*any
func (*InheritField) InheritStructsFromSlice ¶
func (self *InheritField) InheritStructsFromSlice()
Field is compatible with []*any
type InheritFields ¶
type InheritFields map[parsing.EntityPtr][]*InheritField
func (InheritFields) Get ¶
func (self InheritFields) Get(entityPtr parsing.EntityPtr) []*InheritField
type LookupField ¶
type LookupField struct { Types []reflect.Type Names []LookupName }
type LookupName ¶
type LookupProblems ¶
type LookupProblems map[string]*LookupField
func (LookupProblems) Field ¶
func (self LookupProblems) Field(key string) *LookupField
func (LookupProblems) Report ¶
func (self LookupProblems) Report(parsingContext *parsing.Context)
type Parser ¶ added in v0.22.3
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) NewContext ¶ added in v0.22.3
type Task ¶
func (*Task) AddDependency ¶
func (*Task) IsIndependent ¶
func (*Task) PrintDependencies ¶
func (self *Task) PrintDependencies(indent int, treePrefix terminal.TreePrefix)
func (*Task) PrintDependency ¶
func (self *Task) PrintDependency(indent int, treePrefix terminal.TreePrefix, last bool)
type TasksForEntities ¶
type YAMLDecodeError ¶ added in v0.12.0
type YAMLDecodeError struct {
DecodeError *yamlkeys.DecodeError
}
func NewYAMLDecodeError ¶ added in v0.12.0
func NewYAMLDecodeError(decodeError *yamlkeys.DecodeError) *YAMLDecodeError
func (*YAMLDecodeError) Error ¶ added in v0.12.0
func (self *YAMLDecodeError) Error() string
(error interface)
Click to show internal directories.
Click to hide internal directories.