Documentation ¶
Index ¶
- Constants
- func CreateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
- func GetRESTMapperAndGroupVersionResourceFor(obj runtime.Object) (meta.RESTMapper, *schema.GroupVersionResource)
- func GetResource(resourceInterface dynamic.ResourceInterface, obj runtime.Object) *unstructured.Unstructured
- func GetResourceAndError(resourceInterface dynamic.ResourceInterface, obj runtime.Object) (*unstructured.Unstructured, error)
- func NewPod(namespace string) *corev1.Pod
- func NewPodWithImage(namespace, imageName string) *corev1.Pod
- func PrepInitialClientObjs(namespace, clusterID string, initObjs ...runtime.Object) []runtime.Object
- func SetClusterIDLabel(obj runtime.Object, clusterID string) runtime.Object
- func ToUnstructured(obj runtime.Object) *unstructured.Unstructured
- func UpdateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
- func VerifyResource(resourceInterface dynamic.ResourceInterface, expected *corev1.Pod, ...)
- func WaitForNoResource(client dynamic.ResourceInterface, name string)
- func WaitForResource(client dynamic.ResourceInterface, name string) *unstructured.Unstructured
Constants ¶
View Source
const LocalNamespace = "local-ns"
View Source
const RemoteNamespace = "remote-ns"
Variables ¶
This section is empty.
Functions ¶
func CreateResource ¶
func CreateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
func GetRESTMapperAndGroupVersionResourceFor ¶
func GetRESTMapperAndGroupVersionResourceFor(obj runtime.Object) (meta.RESTMapper, *schema.GroupVersionResource)
func GetResource ¶
func GetResource(resourceInterface dynamic.ResourceInterface, obj runtime.Object) *unstructured.Unstructured
func GetResourceAndError ¶
func GetResourceAndError(resourceInterface dynamic.ResourceInterface, obj runtime.Object) (*unstructured.Unstructured, error)
func NewPodWithImage ¶
func PrepInitialClientObjs ¶
func SetClusterIDLabel ¶
func ToUnstructured ¶
func ToUnstructured(obj runtime.Object) *unstructured.Unstructured
func UpdateResource ¶
func UpdateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
func VerifyResource ¶
func VerifyResource(resourceInterface dynamic.ResourceInterface, expected *corev1.Pod, expNamespace, clusterID string)
func WaitForNoResource ¶
func WaitForNoResource(client dynamic.ResourceInterface, name string)
func WaitForResource ¶
func WaitForResource(client dynamic.ResourceInterface, name string) *unstructured.Unstructured
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.