args

package
v0.0.0-...-7a38c46 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInputDirs = []string{}

Functions

func NewGVTypesValue

func NewGVTypesValue(builder *groupVersionsBuilder, gvToTypes *map[types.GroupVersion][]string, def []string) *gvTypeValue

func NewGroupVersionsBuilder

func NewGroupVersionsBuilder(groups *[]types.GroupVersions) *groupVersionsBuilder

func NewInputBasePathValue

func NewInputBasePathValue(builder *groupVersionsBuilder, basePath *string, def string) *inputBasePathValue

Types

type CustomArgs

type CustomArgs struct {
	// Name of the controller to generate.
	Name string

	// A sorted list of group versions to generate. For each of them the package path is found
	// in GroupVersionToInputPath.
	Groups []clientgenTypes.GroupVersions

	// Overrides for which types should be included in the client.
	Types map[clientgenTypes.GroupVersion][]string

	ApiPackage      string
	ClientPackage   string
	ListerPackage   string
	InformerPackage string
}

func NewDefaults

func NewDefaults() (*args.GeneratorArgs, *CustomArgs)

func (*CustomArgs) AddFlags

func (ca *CustomArgs) AddFlags(fs *pflag.FlagSet, apiPackage, informerPackage, listerPackage string)

Jump to

Keyboard shortcuts

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