crd

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MarshalErr = func(err error, detail string) error {
		return eris.Wrapf(err, "internal error: failed to marshal %s", detail)
	}
)

TODO(ilackarms): evaluate this fix for concurrent map access in k8s.io/apimachinery/pkg/runtime.SchemaBuider

Functions

This section is empty.

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, 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