Documentation ¶
Index ¶
- func BackendPluginGenerator(projectRepo, generatedAPIPath string, versioned bool) *codejen.JennyList[codegen.Kind]
- func CRDGenerator(outputEncoder jennies.CRDOutputEncoder, outputExtension string) *codejen.JennyList[codegen.Kind]
- func ModelsGenerator(versioned bool) *codejen.JennyList[codegen.Kind]
- func OperatorGenerator(projectRepo, codegenPath string, versioned bool) *codejen.JennyList[codegen.Kind]
- func ResourceGenerator(versioned bool) *codejen.JennyList[codegen.Kind]
- func ToOverlay(prefix string, vfs fs.FS, overlay map[string]load.Source) error
- func TypeScriptModelsGenerator(versioned bool) *codejen.JennyList[codegen.Kind]
- func TypeScriptResourceGenerator(versioned bool) *codejen.JennyList[codegen.Kind]
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackendPluginGenerator ¶
func BackendPluginGenerator(projectRepo, generatedAPIPath string, versioned bool) *codejen.JennyList[codegen.Kind]
BackendPluginGenerator returns a Generator which will produce boilerplate backend plugin code
func CRDGenerator ¶
func CRDGenerator(outputEncoder jennies.CRDOutputEncoder, outputExtension string) *codejen.JennyList[codegen.Kind]
CRDGenerator returns a Generator which will create a CRD file
func ModelsGenerator ¶
ModelsGenerator returns a Generator which will produce Go and CUE files for API contract models. The `versioned` parameter governs whether to generate all versions where codegen.backend == true, or just generate code for the current version. If `versioned` is true, the paths to the generated files will include the version, and the package name will be the version, rather than the kind.
func OperatorGenerator ¶
func OperatorGenerator(projectRepo, codegenPath string, versioned bool) *codejen.JennyList[codegen.Kind]
OperatorGenerator returns a Generator which will build out watcher boilerplate for each resource, and a main func to run an operator for the watchers.
func ResourceGenerator ¶
ResourceGenerator returns a collection of jennies which generate backend resource code from kinds. The `versioned` parameter governs whether to generate all versions where codegen.backend == true, or just generate code for the current version. If `versioned` is true, the paths to the generated files will include the version, and the package name will be the version, rather than the kind.
func TypeScriptModelsGenerator ¶
TypeScriptModelsGenerator returns a Generator which generates TypeScript model code. The `versioned` parameter governs whether to generate all versions where codegen.frontend == true, or just generate code for the current version. If `versioned` is true, the paths to the generated files will include the version.
func TypeScriptResourceGenerator ¶ added in v0.15.0
TypeScriptResourceGenerator returns a Generator which generates TypeScript resource code. The `versioned` parameter governs whether to generate all versions where codegen.frontend == true, or just generate code for the current version. If `versioned` is true, the paths to the generated files will include the version.