k3s/vendor/github.com/rancher/wrangler/pkg/controller-gen/args/args.go

48 lines
1.0 KiB
Go
Raw Normal View History

2019-05-09 22:03:45 +00:00
package args
import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/gengo/types"
)
type CustomArgs struct {
Package string
TypesByGroup map[schema.GroupVersion][]*types.Name
Options Options
OutputBase string
}
type Options struct {
OutputPackage string
Groups map[string]Group
Boilerplate string
}
type Type struct {
Version string
Package string
Name string
}
2019-05-09 22:03:45 +00:00
type Group struct {
// Types is a slice of the following types
// Instance of any struct: used for reflection to describe the type
// string: a directory that will be listed (non-recursively) for types
// Type: a description of a type
Types []interface{}
GenerateTypes bool
// Generate clientsets
GenerateClients bool
OutputControllerPackageName string
// Generate listers
GenerateListers bool
// Generate informers
GenerateInformers bool
// The package name of the API types
PackageName string
// Use existing clientset, informer, listers
2019-05-09 22:03:45 +00:00
ClientSetPackage string
ListersPackage string
InformersPackage string
}