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"`
APIVersion string `marker:"apiVersion,optional"`
Kind string `marker:"kind,optional"`
IgnoreFields []string `marker:"ignore,optional"`
Target string `marker:",optional"`
Name string `marker:",optional"`
Type string `marker:",optional"`
TargetPackage string `marker:",optional"`
TargetType string `marker:",optional"`
Blank string `marker:",optional"`
Doc string `marker:",optional"`
Spec string `marker:",optional"`
SpecType string `marker:",optional"`
SpecBlank string `marker:",optional"`
Status string `marker:",optional"`
StatusType string `marker:",optional"`
StatusBlank string `marker:",optional"`
}
type DieField ¶ added in v0.13.0
type DieField struct {
Name string `marker:"name"`
Method string `marker:"method,optional"`
Field string `marker:"field,optional"`
Package string `marker:"package,optional"`
Die string `marker:"die"`
Blank string `marker:"blank,optional"`
Pointer *bool `marker:"pointer,optional"`
ListType string `marker:"listType,optional"`
ListMapKey string `marker:"listMapKey,optional"`
ListMapKeyPackage string `marker:"listMapKeyPackage,optional"`
ListMapKeyType string `marker:"listMapKeyType,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.