-
Notifications
You must be signed in to change notification settings - Fork 87
/
args.go
47 lines (42 loc) · 1.12 KB
/
args.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package args
import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/gengo/types"
)
type CustomArgs struct {
// Package is the directory path where generated code output will be located
Package string
ImportPackage string
TypesByGroup map[schema.GroupVersion][]*types.Name
Options Options
OutputBase string
}
type Options struct {
ImportPackage string
// OutputPackage is the directory path where generated code output will be located
OutputPackage string
Groups map[string]Group
Boilerplate string
}
type Type struct {
Version string
Package string
Name string
}
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
}