common

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectErr

func ExpectErr(err error, explain ...interface{})

func ExpectHaveKeys

func ExpectHaveKeys(m interface{}, keys ...string)

func ExpectNoError

func ExpectNoError(err error, explain ...interface{})

func GetObjectFromObjectList

func GetObjectFromObjectList(objList interface{}, name string) client.Object

func GetObjectList

func GetObjectList(objList interface{}) []client.Object

func GetObjectMapFromObjectListByName

func GetObjectMapFromObjectListByName(objList interface{}) map[string]client.Object

func GetObjectsFromObjectListByLabels

func GetObjectsFromObjectListByLabels(objList interface{}, labels map[string]string) []client.Object

func MapObjectsFromObjectListByLabel

func MapObjectsFromObjectListByLabel(objList interface{}, label string) map[string][]client.Object

func WaitForObjectToDisappear

func WaitForObjectToDisappear(c client.Client, name, namespace string, poll, timeout time.Duration, obj client.Object) error

func WaitForObjectsWithLabelsToDisappear

func WaitForObjectsWithLabelsToDisappear(c client.Client, labels map[string]string, namespace string, poll, timeout time.Duration, objList client.ObjectList) error

Types

type StopFunc

type StopFunc func()

func StartPortForward

func StartPortForward(kubeconfig string, svc, ns, port string, localPort int) (StopFunc, error)

Jump to

Keyboard shortcuts

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