Documentation
¶
Index ¶
- Variables
- func NewGVPackagesValue(builder *groupVersionsBuilder, def []string) *gvPackagesValue
- func NewGVTypesValue(gvToTypes *map[types.GroupVersion][]string, def []string) *gvTypeValue
- func NewGroupVersionsBuilder(groups *[]types.GroupVersions) *groupVersionsBuilder
- func NewInputBasePathValue(builder *groupVersionsBuilder, def string) *inputBasePathValue
- func Validate(genericArgs *args.GeneratorArgs) error
- type CustomArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInputDirs = []string{}
Functions ¶
func NewGVPackagesValue ¶ added in v1.9.0
func NewGVPackagesValue(builder *groupVersionsBuilder, def []string) *gvPackagesValue
func NewGVTypesValue ¶ added in v1.9.0
func NewGVTypesValue(gvToTypes *map[types.GroupVersion][]string, def []string) *gvTypeValue
func NewGroupVersionsBuilder ¶ added in v1.10.0
func NewGroupVersionsBuilder(groups *[]types.GroupVersions) *groupVersionsBuilder
func NewInputBasePathValue ¶ added in v1.10.0
func NewInputBasePathValue(builder *groupVersionsBuilder, def string) *inputBasePathValue
func Validate ¶ added in v1.10.0
func Validate(genericArgs *args.GeneratorArgs) error
Types ¶
type CustomArgs ¶ added in v1.9.0
type CustomArgs struct {
// A sorted list of group versions to generate. For each of them the package path is found
// in GroupVersionToInputPath.
Groups []types.GroupVersions
// Overrides for which types should be included in the client.
IncludedTypesOverrides map[types.GroupVersion][]string
// ClientsetName is the name of the clientset to be generated. It's
// populated from command-line arguments.
ClientsetName string
// ClientsetAPIPath is the default API HTTP path for generated clients.
ClientsetAPIPath string
// ClientsetOnly determines if we should generate the clients for groups and
// types along with the clientset. It's populated from command-line
// arguments.
ClientsetOnly bool
// FakeClient determines if client-gen generates the fake clients.
FakeClient bool
}
ClientGenArgs is a wrapper for arguments to client-gen.
func NewDefaults ¶ added in v1.10.0
func NewDefaults() (*args.GeneratorArgs, *CustomArgs)
func (*CustomArgs) AddFlags ¶ added in v1.9.0
func (ca *CustomArgs) AddFlags(fs *pflag.FlagSet, inputBase string)
func (*CustomArgs) GroupVersionPackages ¶ added in v1.10.0
func (ca *CustomArgs) GroupVersionPackages() map[types.GroupVersion]string
GroupVersionPackages returns a map from GroupVersion to the package with the types.go.
Click to show internal directories.
Click to hide internal directories.