generators

package
v0.0.0-...-f384223 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNameSystem

func DefaultNameSystem() string

DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.

func NameSystems

func NameSystems() namer.NameSystems

NameSystems returns the name system used by the generators in this package.

func Packages

func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Packages makes the client package definition.

Types

type ExceptionNamer

type ExceptionNamer struct {
	Exceptions map[string]string
	KeyFunc    func(*types.Type) string

	Delegate namer.Namer
}

ExceptionNamer allows you specify exceptional cases with exact names. This allows you to have control for handling various conflicts, like group and resource names for instance.

func (*ExceptionNamer) Name

func (n *ExceptionNamer) Name(t *types.Type) string

Name provides the requested name for a type.

type Tags

type Tags struct {
	util.Tags

	GenerateDuck       bool
	GenerateReconciler bool
}

Tags represents a genclient configuration for a single type.

func MustParseClientGenTags

func MustParseClientGenTags(lines []string) Tags

MustParseClientGenTags calls ParseClientGenTags but instead of returning error it panics.

func (Tags) NeedsDuckInjection

func (t Tags) NeedsDuckInjection() bool

func (Tags) NeedsInformerInjection

func (t Tags) NeedsInformerInjection() bool

func (Tags) NeedsReconciler

func (t Tags) NeedsReconciler(kind *types.Type, args *informergenargs.CustomArgs) bool

Jump to

Keyboard shortcuts

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