codegen

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientGenerators = []string{
		"client",
		"lister",
		"informer",
	}
)

Functions

func EnabledGenerators

func EnabledGenerators(defaultEnabledGenerators, defaultDisabledGenerators, generatorsOptions []string) []string

Types

type CodeGenerator

type CodeGenerator struct {
	// contains filtered or unexported fields
}

func NewCodeGenerator

func NewCodeGenerator(
	workspace string,
	workspaceModule string,
	logger logr.Logger,
	codeGeneratorVersion string,
	enabledGenerators, disabledGenerators []string,
	boilerplatePath, apisPath, clientPath string,
	inputPackages, inputInternalPackage []string,
	clientsetDirName, informersDirName, listersDirName string,
	verbose int,
) *CodeGenerator

func (*CodeGenerator) Run

func (c *CodeGenerator) Run(generators []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL