codegen

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 17 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 []string,
	clientsetDirName, informersDirName, listersDirName string,
) *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