Add group alias names to discovery in API resources

pull/6/head
Fabiano Franz 2017-03-20 15:10:46 -03:00
parent 7bbc615b97
commit f07bf05f02
1 changed files with 2 additions and 0 deletions

View File

@ -740,6 +740,8 @@ type APIResource struct {
Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"`
// shortNames is a list of suggested short names of the resource.
ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"`
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"`
}
// Verbs masks the value so protobuf can generate