objectclient

package
v0.0.0-...-f574404 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericClient

type GenericClient interface {
	UnstructuredClient() GenericClient
	GroupVersionKind() schema.GroupVersionKind
	Create(o runtime.Object) (runtime.Object, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (runtime.Object, error)
	Get(name string, opts metav1.GetOptions) (runtime.Object, error)
	Update(name string, o runtime.Object) (runtime.Object, error)
	DeleteNamespaced(namespace, name string, opts *metav1.DeleteOptions) error
	Delete(name string, opts *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (runtime.Object, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOptions *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Patch(name string, o runtime.Object, patchType types.PatchType, data []byte, subresources ...string) (runtime.Object, error)
	ObjectFactory() ObjectFactory
}

type ObjectClient

type ObjectClient struct {
	Factory ObjectFactory
	// contains filtered or unexported fields
}

func NewObjectClient

func NewObjectClient(namespace string, restClient rest.Interface, apiResource *metav1.APIResource, gvk schema.GroupVersionKind, factory ObjectFactory) *ObjectClient

func (*ObjectClient) Create

func (p *ObjectClient) Create(o runtime.Object) (runtime.Object, error)

func (*ObjectClient) Delete

func (p *ObjectClient) Delete(name string, opts *metav1.DeleteOptions) error

func (*ObjectClient) DeleteCollection

func (p *ObjectClient) DeleteCollection(deleteOptions *metav1.DeleteOptions, listOptions metav1.ListOptions) error

func (*ObjectClient) DeleteNamespaced

func (p *ObjectClient) DeleteNamespaced(namespace, name string, opts *metav1.DeleteOptions) error

func (*ObjectClient) Get

func (p *ObjectClient) Get(name string, opts metav1.GetOptions) (runtime.Object, error)

func (*ObjectClient) GetNamespaced

func (p *ObjectClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (runtime.Object, error)

func (*ObjectClient) GroupVersionKind

func (p *ObjectClient) GroupVersionKind() schema.GroupVersionKind

func (*ObjectClient) List

func (*ObjectClient) ObjectFactory

func (p *ObjectClient) ObjectFactory() ObjectFactory

func (*ObjectClient) Patch

func (p *ObjectClient) Patch(name string, o runtime.Object, patchType types.PatchType, data []byte, subresources ...string) (runtime.Object, error)

func (*ObjectClient) UnstructuredClient

func (p *ObjectClient) UnstructuredClient() GenericClient

func (*ObjectClient) Update

func (p *ObjectClient) Update(name string, o runtime.Object) (runtime.Object, error)

func (*ObjectClient) Watch

func (p *ObjectClient) Watch(opts metav1.ListOptions) (watch.Interface, error)

type ObjectFactory

type ObjectFactory interface {
	Object() runtime.Object
	List() runtime.Object
}

type UnstructuredObjectFactory

type UnstructuredObjectFactory struct {
}

func (*UnstructuredObjectFactory) List

func (*UnstructuredObjectFactory) Object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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