compatibility

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func NewCompatibilityGen(sanitizedName, targetPackage string) generator.Generator

NewCompatibilityGen creates the openshift compatibility generator.

func Packages

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

Packages makes the package definition.

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.

Jump to

Keyboard shortcuts

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