spoketesting

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAction

func AssertAction(t *testing.T, actual clienttesting.Action, expected string)

func NewAppliedManifestWork

func NewAppliedManifestWork(hash string, index int, uid types.UID) *workapiv1.AppliedManifestWork

func NewFakeRestMapper

func NewFakeRestMapper() meta.RESTMapper

func NewManifestWork

func NewManifestWork(index int, objects ...*unstructured.Unstructured) (*workapiv1.ManifestWork, string)

func NewSecret

func NewSecret(name, namespace string, content string) *corev1.Secret

func NewSecretWithType added in v0.9.0

func NewSecretWithType(name, namespace string, content string, t corev1.SecretType) *corev1.Secret

func NewUnstructured

func NewUnstructured(apiVersion, kind, namespace, name string, owners ...metav1.OwnerReference) *unstructured.Unstructured

func NewUnstructuredSecret

func NewUnstructuredSecret(namespace, name string, terminated bool, uid string, owners ...metav1.OwnerReference) *unstructured.Unstructured

func NewUnstructuredSecretBySize

func NewUnstructuredSecretBySize(namespace, name string, size int32) *unstructured.Unstructured

func NewUnstructuredWithContent

func NewUnstructuredWithContent(
	apiVersion, kind, namespace, name string, content map[string]interface{}) *unstructured.Unstructured

Types

type FakeSyncContext

type FakeSyncContext struct {
	// contains filtered or unexported fields
}

func NewFakeSyncContext

func NewFakeSyncContext(t *testing.T, workKey string) *FakeSyncContext

func (FakeSyncContext) Queue

func (FakeSyncContext) QueueKey

func (f FakeSyncContext) QueueKey() string

func (FakeSyncContext) Recorder

func (f FakeSyncContext) Recorder() events.Recorder

Jump to

Keyboard shortcuts

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