api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(k8sClient client.Client, namespace *corev1.Namespace) error

func CreateIfNotAvailable

func CreateIfNotAvailable(k8sClient client.Client, name string) error

func CreateWithMap

func CreateWithMap(k8sClient client.Client, cfg map[string]interface{}) error

func Delete

func Delete(k8sClient client.Client, namespace *corev1.Namespace) error

func DeleteAndWait added in v1.1.0

func DeleteAndWait(k8sClient client.Client, namespace *corev1.Namespace) error

func DeleteOfAll

func DeleteOfAll(k8sClient client.Client, namespace *corev1.Namespace, opts []client.DeleteAllOfOption) error

func Get

func Get(k8sClient client.Client, name string) (*corev1.Namespace, error)

func List

func List(k8sClient client.Client, opts []client.ListOption) (*corev1.NamespaceList, error)

func WaitForDeletion added in v1.1.0

func WaitForDeletion(k8sClient client.Client, namespaces []string, tc openshiftTY.TimeoutConfig) error

wait for namespaces deletion

Types

This section is empty.

Jump to

Keyboard shortcuts

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