crd

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 18 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionExistsError = func(version string) error {
		return errors.Errorf("tried adding version %s, but it already exists")
	}

	NotFoundError = func(id string) error {
		return errors.Errorf("could not find the combined crd for %v", id)
	}

	InvalidGVKError = func(gvk schema.GroupVersionKind) error {
		return errors.Errorf("the following gvk %v does not correspond to a crd in the combined crd object", gvk)
	}
)

Functions

func AddCrd added in v0.10.1

func AddCrd(resource Crd) error

Types

type Crd

type Crd struct {
	CrdMeta
	Version Version
}

func NewCrd

func NewCrd(
	plural string,
	group string,
	version string,
	kindName string,
	shortName string,
	clusterScoped bool,
	objType runtime.Object) Crd

func (Crd) AddToScheme

func (d Crd) AddToScheme(s *runtime.Scheme) error

func (Crd) GroupVersion added in v0.10.1

func (d Crd) GroupVersion() schema.GroupVersion

GroupVersion is group version used to register these objects

func (Crd) GroupVersionKind added in v0.10.1

func (d Crd) GroupVersionKind() schema.GroupVersionKind

GroupVersionKing is the unique id of this crd

func (Crd) Kind

func (d Crd) Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func (Crd) KubeResource

func (d Crd) KubeResource(resource resources.InputResource) *v1.Resource

func (Crd) Register

func (d Crd) Register(apiexts apiexts.Interface) error

func (Crd) Resource

func (d Crd) Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func (Crd) SchemeBuilder

func (d Crd) SchemeBuilder() runtime.SchemeBuilder

func (Crd) TypeMeta

func (d Crd) TypeMeta() metav1.TypeMeta

type CrdMeta added in v0.10.1

type CrdMeta struct {
	Plural        string
	Group         string
	KindName      string
	ShortName     string
	ClusterScoped bool
}

func (CrdMeta) FullName added in v0.10.1

func (d CrdMeta) FullName() string

func (CrdMeta) GroupKind added in v0.10.1

func (d CrdMeta) GroupKind() schema.GroupKind

type MultiVersionCrd added in v0.10.1

type MultiVersionCrd struct {
	CrdMeta
	Versions []Version
}

type Version added in v0.10.1

type Version struct {
	Version string
	Type    runtime.Object
}

Directories

Path Synopsis
client
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/solo.io/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/solo.io/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
solo.io
v1
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL