Documentation ¶
Index ¶
- Variables
- func FakeClientset(ctx context.Context, config *rest.Config) (kubernetes.Interface, error)
- func FakeDynamicFactory(listResults *unstructured.UnstructuredList, listErr bool) func(context.Context, *rest.Config) (dynamic.Interface, error)
- func NewFakeClient(listResults *unstructured.UnstructuredList, listErr bool) *client.Client
- type FakeDynamicClient
- type NamespaceableResource
- func (n NamespaceableResource) Create(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (n NamespaceableResource) Delete(ctx context.Context, name string, options metav1.DeleteOptions, ...) error
- func (n NamespaceableResource) DeleteCollection(ctx context.Context, options metav1.DeleteOptions, ...) error
- func (n NamespaceableResource) Get(ctx context.Context, name string, options metav1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (n NamespaceableResource) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (n NamespaceableResource) Namespace(string) dynamic.ResourceInterface
- func (n NamespaceableResource) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*unstructured.Unstructured, error)
- func (n NamespaceableResource) Update(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (n NamespaceableResource) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (n NamespaceableResource) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeConfig = &rest.Config{QPS: 400, Burst: 800}
Functions ¶
func FakeClientset ¶
func FakeDynamicFactory ¶
func FakeDynamicFactory(listResults *unstructured.UnstructuredList, listErr bool) func(context.Context, *rest.Config) (dynamic.Interface, error)
func NewFakeClient ¶
func NewFakeClient(listResults *unstructured.UnstructuredList, listErr bool) *client.Client
Types ¶
type FakeDynamicClient ¶
type FakeDynamicClient struct { ListErr bool ListResults *unstructured.UnstructuredList }
func (FakeDynamicClient) Resource ¶
func (d FakeDynamicClient) Resource(resource schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
type NamespaceableResource ¶
type NamespaceableResource struct { ListErr bool ListResults *unstructured.UnstructuredList }
func (NamespaceableResource) Create ¶
func (n NamespaceableResource) Create(ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (NamespaceableResource) Delete ¶
func (n NamespaceableResource) Delete(ctx context.Context, name string, options metav1.DeleteOptions, subresources ...string) error
func (NamespaceableResource) DeleteCollection ¶
func (n NamespaceableResource) DeleteCollection(ctx context.Context, options metav1.DeleteOptions, listOptions metav1.ListOptions) error
func (NamespaceableResource) Get ¶
func (n NamespaceableResource) Get(ctx context.Context, name string, options metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
func (NamespaceableResource) List ¶
func (n NamespaceableResource) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
func (NamespaceableResource) Namespace ¶
func (n NamespaceableResource) Namespace(string) dynamic.ResourceInterface
func (NamespaceableResource) Patch ¶
func (n NamespaceableResource) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string) (*unstructured.Unstructured, error)
func (NamespaceableResource) Update ¶
func (n NamespaceableResource) Update(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (NamespaceableResource) UpdateStatus ¶
func (n NamespaceableResource) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions) (*unstructured.Unstructured, error)
func (NamespaceableResource) Watch ¶
func (n NamespaceableResource) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.