Documentation ¶
Index ¶
- func BoilerplatePath() string
- func DefaultNameSystem() string
- func NameSystems() namer.NameSystems
- func NewCompatibilityGen(sanitizedName, targetPackage string) generator.Generator
- func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages
- func Validate(genericArgs *args.GeneratorArgs) error
- type CustomArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoilerplatePath ¶
func BoilerplatePath() string
BoilerplatePath uses the boilerplate in code-generator by calculating the relative path to it.
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 NewCompatibilityGen ¶
NewCompatibilityGen creates the openshift compatibility generator.
func Validate ¶
func Validate(genericArgs *args.GeneratorArgs) error
Validate checks the given arguments.
Types ¶
type CustomArgs ¶
type CustomArgs struct { }
CustomArgs is used tby the go2idl 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.