Documentation ¶
Index ¶
- Constants
- func AddLabels(obj *unstructured.Unstructured, uuid string)
- func CleanupNamespaces(virtCli kubecli.KubevirtClient, timeout time.Duration, ...) error
- func CreateNamespace(virtCli kubecli.KubevirtClient, name, scenarioLabel, uuid string) error
- func CreateObject(virtCli kubecli.KubevirtClient, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func DeleteAllObjectsInNamespaces(virtCli kubecli.KubevirtClient, resourceKind string, ...) error
- func GenerateObjectTemplateData(obj *config.ObjectSpec, iteration, replica int, namespacedIterations bool) map[string]interface{}
- func GetObjectResource(obj *unstructured.Unstructured) string
- func RendereObject(templateData map[string]interface{}, objectSpec []byte) (*unstructured.Unstructured, error)
- func WaitForDeleteNamespaces(virtCli kubecli.KubevirtClient, timeout time.Duration, ...) error
Constants ¶
View Source
const ( Replica = "replica" Iteration = "iteration" UUID = "uuid" Namespace = "namespace" )
View Source
const ( VMIResource = "virtualmachineinstances" VMResource = "virtualmachines" VMIReplicaSetResource = "virtualmachineinstancereplicasets" )
Variables ¶
This section is empty.
Functions ¶
func AddLabels ¶
func AddLabels(obj *unstructured.Unstructured, uuid string)
func CleanupNamespaces ¶
func CleanupNamespaces(virtCli kubecli.KubevirtClient, timeout time.Duration, listOpts *metav1.ListOptions) error
CleanupNamespaces deletes a collection of namespaces with the given selector
func CreateNamespace ¶
func CreateNamespace(virtCli kubecli.KubevirtClient, name, scenarioLabel, uuid string) error
func CreateObject ¶
func CreateObject(virtCli kubecli.KubevirtClient, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
func DeleteAllObjectsInNamespaces ¶
func DeleteAllObjectsInNamespaces(virtCli kubecli.KubevirtClient, resourceKind string, listOpts *metav1.ListOptions) error
DeleteAllObjectsInNamespaces deletes a collection of objects in a set of namespace with a given selector
func GenerateObjectTemplateData ¶
func GenerateObjectTemplateData(obj *config.ObjectSpec, iteration, replica int, namespacedIterations bool) map[string]interface{}
func GetObjectResource ¶
func GetObjectResource(obj *unstructured.Unstructured) string
GetObjectResource returns the resource type of an object The kubevirt API understand the resource type as plural
func RendereObject ¶
func RendereObject(templateData map[string]interface{}, objectSpec []byte) (*unstructured.Unstructured, error)
RendereObject creates a Kubernetes Unstructured object from a template
func WaitForDeleteNamespaces ¶
func WaitForDeleteNamespaces(virtCli kubecli.KubevirtClient, timeout time.Duration, listOpts metav1.ListOptions) error
WaitForDeleteNamespaces waits to all namespaces with the given selector be deleted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.