v1

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(t *testing.T, client *gophercloud.ServiceClient, clusterTemplateID string) (string, error)

CreateCluster will create a random cluster. An error will be returned if the cluster could not be created. Has a timeout of 300 seconds.

func CreateClusterTemplate

func CreateClusterTemplate(t *testing.T, client *gophercloud.ServiceClient) (*clustertemplates.ClusterTemplate, error)

CreateClusterTemplate will create a random swarm cluster template. An error will be returned if the cluster template could not be created.

func CreateClusterTemplateCOE

func CreateClusterTemplateCOE(t *testing.T, client *gophercloud.ServiceClient, coe string) (*clustertemplates.ClusterTemplate, error)

CreateClusterTemplateCOE will create a random cluster template for the specified orchestration engine. An error will be returned if the cluster template could not be created.

func CreateClusterTimeout

func CreateClusterTimeout(t *testing.T, client *gophercloud.ServiceClient, clusterTemplateID string, timeout time.Duration) (string, error)

CreateClusterTimeout will create a random cluster and wait for it to reach CREATE_COMPLETE status within the given timeout duration. An error will be returned if the cluster could not be created.

func CreateKubernetesCluster

func CreateKubernetesCluster(t *testing.T, client *gophercloud.ServiceClient, clusterTemplateID string) (string, error)

CreateKubernetesCluster is the same as CreateCluster with a longer timeout necessary for creating a kubernetes cluster

func CreateKubernetesClusterTemplate

func CreateKubernetesClusterTemplate(t *testing.T, client *gophercloud.ServiceClient) (*clustertemplates.ClusterTemplate, error)

CreateKubernetesClusterTemplate will create a random kubernetes cluster template. An error will be returned if the cluster template could not be created.

func CreateQuota

func CreateQuota(t *testing.T, client *gophercloud.ServiceClient) (*quotas.Quotas, error)

CreateQuota will create a random quota. An error will be returned if the quota could not be created.

func DeleteCluster

func DeleteCluster(t *testing.T, client *gophercloud.ServiceClient, id string)

func DeleteClusterTemplate

func DeleteClusterTemplate(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteClusterTemplate will delete a given cluster-template. A fatal error will occur if the cluster-template could not be deleted. This works best as a deferred function.

func WaitForCluster

func WaitForCluster(client *gophercloud.ServiceClient, clusterID string, status string, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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