Documentation ¶
Index ¶
- type GenericClient
- type ObjectClient
- func (p *ObjectClient) Create(o runtime.Object) (runtime.Object, error)
- func (p *ObjectClient) Delete(name string, opts *metav1.DeleteOptions) error
- func (p *ObjectClient) DeleteCollection(deleteOptions *metav1.DeleteOptions, listOptions metav1.ListOptions) error
- func (p *ObjectClient) DeleteNamespaced(namespace, name string, opts *metav1.DeleteOptions) error
- func (p *ObjectClient) Get(name string, opts metav1.GetOptions) (runtime.Object, error)
- func (p *ObjectClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (runtime.Object, error)
- func (p *ObjectClient) GroupVersionKind() schema.GroupVersionKind
- func (p *ObjectClient) List(opts metav1.ListOptions) (runtime.Object, error)
- func (p *ObjectClient) ObjectFactory() ObjectFactory
- func (p *ObjectClient) Patch(name string, o runtime.Object, patchType types.PatchType, data []byte, ...) (runtime.Object, error)
- func (p *ObjectClient) UnstructuredClient() GenericClient
- func (p *ObjectClient) Update(name string, o runtime.Object) (runtime.Object, error)
- func (p *ObjectClient) Watch(opts metav1.ListOptions) (watch.Interface, error)
- type ObjectFactory
- type UnstructuredObjectFactory
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) 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 (p *ObjectClient) List(opts metav1.ListOptions) (runtime.Object, error)
func (*ObjectClient) ObjectFactory ¶
func (p *ObjectClient) ObjectFactory() ObjectFactory
func (*ObjectClient) UnstructuredClient ¶
func (p *ObjectClient) UnstructuredClient() GenericClient
func (*ObjectClient) Watch ¶
func (p *ObjectClient) Watch(opts metav1.ListOptions) (watch.Interface, error)
type UnstructuredObjectFactory ¶
type UnstructuredObjectFactory struct { }
func (*UnstructuredObjectFactory) List ¶
func (u *UnstructuredObjectFactory) List() runtime.Object
func (*UnstructuredObjectFactory) Object ¶
func (u *UnstructuredObjectFactory) Object() runtime.Object
Click to show internal directories.
Click to hide internal directories.