crd

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 18 Imported by: 51

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRD

type CRD struct {
	GVK          schema.GroupVersionKind
	PluralName   string
	NonNamespace bool
	Schema       *v1beta1.JSONSchemaProps
	SchemaObject interface{}
	Columns      []v1beta1.CustomResourceColumnDefinition
	Status       bool
	Scale        bool
	Categories   []string
	ShortNames   []string
}

func FromGV

func FromGV(gv schema.GroupVersion, kind string) CRD

func NamespacedType

func NamespacedType(name string) CRD

func NamespacedTypes

func NamespacedTypes(names ...string) (ret []CRD)

func New added in v0.5.0

func New(group, version string) CRD

func NonNamespacedType

func NonNamespacedType(name string) CRD

func NonNamespacedTypes

func NonNamespacedTypes(names ...string) (ret []CRD)

func (CRD) ToCustomResourceDefinition

func (c CRD) ToCustomResourceDefinition() (apiext.CustomResourceDefinition, error)

func (CRD) WithCategories added in v0.3.1

func (c CRD) WithCategories(categories ...string) CRD

func (CRD) WithCustomColumn added in v0.3.0

func (c CRD) WithCustomColumn(columns []v1beta1.CustomResourceColumnDefinition) CRD

func (CRD) WithScale added in v0.3.0

func (c CRD) WithScale() CRD

func (CRD) WithSchema added in v0.3.0

func (c CRD) WithSchema(schema *v1beta1.JSONSchemaProps) CRD

func (CRD) WithSchemaFromStruct added in v0.5.0

func (c CRD) WithSchemaFromStruct(obj interface{}) CRD

func (CRD) WithShortNames added in v0.3.1

func (c CRD) WithShortNames(shortNames ...string) CRD

func (CRD) WithStatus added in v0.3.0

func (c CRD) WithStatus() CRD

type Factory

type Factory struct {
	CRDClient clientset.Interface
	// contains filtered or unexported fields
}

func NewFactoryFromClient

func NewFactoryFromClient(config *rest.Config) (*Factory, error)

func NewFactoryFromClientGetter

func NewFactoryFromClientGetter(client clientset.Interface) *Factory

func (*Factory) BatchCreateCRDs

func (f *Factory) BatchCreateCRDs(ctx context.Context, crds ...CRD) *Factory

func (*Factory) BatchWait

func (f *Factory) BatchWait() error

func (*Factory) CreateCRDs

Jump to

Keyboard shortcuts

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