testing

package
v0.0.0-...-ec175e0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FakeConfig = &rest.Config{QPS: 400, Burst: 800}

Functions

func FakeClientset

func FakeClientset(ctx context.Context, config *rest.Config) (kubernetes.Interface, error)

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

type NamespaceableResource

type NamespaceableResource struct {
	ListErr     bool
	ListResults *unstructured.UnstructuredList
}

func (NamespaceableResource) Create

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 (NamespaceableResource) Namespace

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 (NamespaceableResource) UpdateStatus

func (NamespaceableResource) Watch

Jump to

Keyboard shortcuts

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