Documentation
¶
Index ¶
- Constants
- func CodeWriterAtPath(dir string) config.CodeWriterFunc
- func GenDeepCopyCode(cfg *config.Config) error
- func Generate(req *gotype.Request, r io.Reader) error
- func GenerateStream(req *gotype.Request, r io.Reader) ([]string, error)
- func GenerateToDir(cfg *config.Config) error
- func LoadConfig(r io.Reader) (*config.Config, error)
Constants ¶
View Source
const (
ControllerGenCommand = "controller-gen"
)
Variables ¶
This section is empty.
Functions ¶
func CodeWriterAtPath ¶
func CodeWriterAtPath(dir string) config.CodeWriterFunc
CodeWriterAtPath creates a file writer for the given CRD at the specified directory
func GenDeepCopyCode ¶
GenDeepCopyCode will call controller-gen to generate deep copy code In Auto mode controller-gen is only called if the program is in the $PATH
func GenerateStream ¶
GenerateStream generates Go code from a stream of CRDs within a YAML reader. It uses the provided CodeWriterFunc to write the generated code to the specified output. The version parameter specifies the version of the CRD to generate code for. The preloadedTypes parameter allows for preloading specific types to avoid name collisions.
func GenerateToDir ¶
GenerateToDir generates Go code from a CRD YAML file into a directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.