Documentation
¶
Index ¶
- func CG(pkgDir string) ([]byte, error)
- func CollectUndefined(root *Node) []string
- func PopulateDefaults(n *Node, y interface{}, aliases map[string]*Node)
- func WriteGeneratedGoAndStub(root *Node, module string) (tmpdir, goFilePath string, err error)
- func WriteValuesSchema(crdBytes []byte, outPath string) error
- type Node
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectUndefined ¶
func PopulateDefaults ¶
func WriteGeneratedGoAndStub ¶
func WriteValuesSchema ¶
Types ¶
type Node ¶
type Node struct {
Name string
IsParam bool
TypeExpr string
Enums []string
DefaultVal string
HasDefaultVal bool // Set to true when DefaultVal is populated from YAML (even if empty)
Comment string
OmitEmpty bool
Parent *Node
Child map[string]*Node
// Validation constraints
Minimum *float64
Maximum *float64
ExclusiveMinimum bool
ExclusiveMaximum bool
MinLength *int64
MaxLength *int64
Pattern string
MinItems *int64
MaxItems *int64
}
type Raw ¶
type Raw struct {
K kind
Path []string
TypeExpr string
Enums []string
DefaultVal string
Description string
OmitEmpty bool // Field marked with [name] for omitempty
// Validation constraints
Minimum *float64
Maximum *float64
ExclusiveMinimum bool
ExclusiveMaximum bool
MinLength *int64
MaxLength *int64
Pattern string
MinItems *int64
MaxItems *int64
}
Click to show internal directories.
Click to hide internal directories.