Create short name for cronjob

pull/6/head
Maciej Szulik 2018-02-07 20:23:25 +01:00
parent c17b418f89
commit ca29a37f22
1 changed files with 6 additions and 0 deletions

View File

@ -60,12 +60,18 @@ func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST) {
} }
var _ rest.CategoriesProvider = &REST{} var _ rest.CategoriesProvider = &REST{}
var _ rest.ShortNamesProvider = &REST{}
// Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of. // Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of.
func (r *REST) Categories() []string { func (r *REST) Categories() []string {
return []string{"all"} return []string{"all"}
} }
// ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (r *REST) ShortNames() []string {
return []string{"cj"}
}
// StatusREST implements the REST endpoint for changing the status of a resourcequota. // StatusREST implements the REST endpoint for changing the status of a resourcequota.
type StatusREST struct { type StatusREST struct {
store *genericregistry.Store store *genericregistry.Store