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
|
2019-07-12 17:13:20 +00:00
|
|
|
GenMocks bool
|
2019-05-09 22:03:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Group struct {
|
|
|
|
Types []interface{}
|
|
|
|
GenerateTypes bool
|
|
|
|
PackageName string
|
|
|
|
ClientSetPackage string
|
|
|
|
ListersPackage string
|
|
|
|
InformersPackage string
|
|
|
|
}
|