Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeGenerator ¶
type CodeGenerator struct { // OutputFileBaseName is the base name used for output files OutputFileBaseName string // contains filtered or unexported fields }
CodeGenerator generates code for Kubernetes resources and controllers
func (*CodeGenerator) AddControllerGenerator ¶
func (g *CodeGenerator) AddControllerGenerator(generator codegen.ControllerGenerator) *CodeGenerator
AddControllerGenerator adds a controller generator that will be called with parsed controllers
func (*CodeGenerator) AddResourceGenerator ¶
func (g *CodeGenerator) AddResourceGenerator(generator codegen.ResourceGenerator) *CodeGenerator
AddResourceGenerator adds a resource generator that will be called with parsed resources
func (*CodeGenerator) Execute ¶
func (g *CodeGenerator) Execute() error
Execute parses packages and executes the code generators against the resource and controller packages
Click to show internal directories.
Click to hide internal directories.