apiserver: k8s.io/apiserver/pkg/apis/example2 Index | Files | Directories

package example2

import "k8s.io/apiserver/pkg/apis/example2"

+k8s:deepcopy-gen=package +groupName=example2.k8s.io

package example2 contains an example API whose internal version is defined in another group ("example"). This happens if a type is moved to a different group. It's not recommended to move types across groups, though Kubernetes have a few cases due to historical reasons. This package is for tests.


Package Files

doc.go register.go zz_generated.deepcopy.go


const GroupName = "example2.apiserver.k8s.io"

GroupName is the group name use in this package


var (
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    AddToScheme   = SchemeBuilder.AddToScheme
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource


installPackage install installs the example2 API group, making it available as an option to all of the API encoding/decoding machinery.
v1Package v1 is a generated protocol buffer package.

Package example2 imports 3 packages (graph). Updated 2019-11-13. Refresh now. Tools for package owners.