Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Die ¶
type Die struct {
Object bool `marker:"object,optional"`
IgnoreFields []string `marker:"ignore,optional"`
Target string `marker:",optional"`
Name string `marker:",optional"`
InternalName string `marker:",optional"`
Type string `marker:",optional"`
Interface string `marker:",optional"`
TargetPackage string `marker:",optional"`
TargetType string `marker:",optional"`
Blank string `marker:",optional"`
Doc string `marker:",optional"`
SpecName string `marker:",optional"`
SpecBlank string `marker:",optional"`
SpecInterface string `marker:",optional"`
StatusName string `marker:",optional"`
StatusBlank string `marker:",optional"`
StatusInterface string `marker:",optional"`
CustomMethodInterface string `marker:",optional"`
}
type Field ¶
type Generator ¶
type Generator struct {
// HeaderFile specifies the header text (e.g. license) to prepend to generated files.
HeaderFile string `marker:",optional"`
// Year specifies the year to substitute for " YEAR" in the header file.
Year string `marker:",optional"`
}
func (Generator) CheckFilter ¶
func (Generator) CheckFilter() loader.NodeFilter
type ObjectGenCtx ¶
type ObjectGenCtx struct {
Collector *markers.Collector
Checker *loader.TypeChecker
HeaderText string
}
ObjectGenCtx contains the common info for generating deepcopy implementations. It mostly exists so that generating for a package can be easily tested without requiring a full set of output rules, etc.
Click to show internal directories.
Click to hide internal directories.