args

package
v0.0.0-...-8c68e18 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	InputDirs         []string
	OutputPackagePath string
	OutputDir         string
	GoHeaderFilePath  string

	VersionedClientSetPackage        string
	ExternalVersionsInformersPackage string
	ListersPackage                   string
	ForceKinds                       string
	ListerHasPointerElem             bool
	DisableInformerInit              bool

	// PluralExceptions define a list of pluralizer exceptions in Type:PluralType format.
	// The default list is "Endpoints:Endpoints"
	PluralExceptions []string

	Boilerplate []byte
}

Args is used by the gengo framework to pass args specific to this generator.

func New

func New() *Args

func (*Args) AddFlags

func (a *Args) AddFlags(fs *pflag.FlagSet)

AddFlags add the generator flags to the flag set.

func (*Args) GetOutputDir

func (a *Args) GetOutputDir() string

func (*Args) GetOutputPackagePath

func (a *Args) GetOutputPackagePath() string

func (*Args) Validate

func (a *Args) Validate() error

Validate checks the given arguments.

Jump to

Keyboard shortcuts

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