Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(genericArgs *args.GeneratorArgs) error
Validate checks the given arguments.
Types ¶
type CustomArgs ¶
type CustomArgs struct { VersionedClientSetPackage string InternalClientSetPackage string ListersPackage string SingleDirectory bool // PluralExceptions define a list of pluralizer exceptions in Type:PluralType format. // The default list is "Endpoints:Endpoints" PluralExceptions []string // InformerPackage override base package in import block InformerPackage string }
CustomArgs is used by the gengo framework to pass args specific to this generator.
func NewDefaults ¶
func NewDefaults() (*args.GeneratorArgs, *CustomArgs)
NewDefaults returns default arguments for the generator.
func (*CustomArgs) AddFlags ¶
func (ca *CustomArgs) AddFlags(fs *pflag.FlagSet)
AddFlags add the generator flags to the flag set.
Click to show internal directories.
Click to hide internal directories.