/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/openshift/api/openshiftcontrolplane/install.go
26 строк
687 B
David Eads
bump
17 сен 2018, 18:03
17 сен 2018, 18:03
b553ff0
Код
Авторство
О чём код?
package openshiftcontrolplane import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" openshiftcontrolplanev1 "github.com/openshift/api/openshiftcontrolplane/v1" ) const ( GroupName = "openshiftcontrolplane.config.openshift.io" ) var ( schemeBuilder = runtime.NewSchemeBuilder(openshiftcontrolplanev1.Install) // Install is a function which adds every version of this group to a scheme Install = schemeBuilder.AddToScheme ) func Resource(resource string) schema.GroupResource { return schema.GroupResource{Group: GroupName, Resource: resource} } func Kind(kind string) schema.GroupKind { return schema.GroupKind{Group: GroupName, Kind: kind} }