Documentation ¶
Index ¶
- func AppGenerator(projectRepo, codegenPath string, groupKinds bool) *codejen.JennyList[codegen.Kind]
- func BackendPluginGenerator(projectRepo, generatedAPIPath string, groupKinds bool) *codejen.JennyList[codegen.Kind]
- func CRDGenerator(outputEncoder jennies.CRDOutputEncoder, outputExtension string) *codejen.JennyList[codegen.Kind]
- func ManifestGenerator(encoder jennies.ManifestOutputEncoder, extension string, appName string) *codejen.JennyList[codegen.Kind]
- func ManifestGoGenerator(pkg string, appName string) *codejen.JennyList[codegen.Kind]
- func ModelsGenerator(versioned bool, groupKinds bool) *codejen.JennyList[codegen.Kind]
- func OperatorGenerator(projectRepo, codegenPath string, groupKinds bool) *codejen.JennyList[codegen.Kind]
- func PostResourceGenerationGenerator(projectRepo, goGenPath string, groupKinds bool) *codejen.JennyList[codegen.Kind]
- func ResourceGenerator(groupKinds 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() *codejen.JennyList[codegen.Kind]
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppGenerator ¶ added in v0.23.0
func BackendPluginGenerator ¶
func BackendPluginGenerator(projectRepo, generatedAPIPath string, groupKinds 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 ManifestGenerator ¶ added in v0.20.0
func ManifestGoGenerator ¶ added in v0.20.0
func ModelsGenerator ¶
ModelsGenerator returns a Generator which will produce Go and CUE files for API contract models. Deprecated: model generation will be removed in a future release, in favor of only API resources
func OperatorGenerator ¶
func OperatorGenerator(projectRepo, codegenPath string, groupKinds 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 PostResourceGenerationGenerator ¶ added in v0.16.0
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 `groupKinds` is true, kinds within the same group will exist in the same package. When combined with `versioned`, each version package will contain all kinds in the group which have a schema for that version.
func TypeScriptModelsGenerator ¶
TypeScriptModelsGenerator returns a Generator which generates TypeScript model code. Deprecated: model generation will be removed in a future release, in favor of only API resources