Documentation ¶
Index ¶
- func CreateCluster(t *testing.T, client *gophercloud.ServiceClient, clusterTemplateID string) (string, error)
- func CreateClusterTemplate(t *testing.T, client *gophercloud.ServiceClient) (*clustertemplates.ClusterTemplate, error)
- func CreateClusterTemplateCOE(t *testing.T, client *gophercloud.ServiceClient, coe string) (*clustertemplates.ClusterTemplate, error)
- func CreateClusterTimeout(t *testing.T, client *gophercloud.ServiceClient, clusterTemplateID string, ...) (string, error)
- func CreateKubernetesCluster(t *testing.T, client *gophercloud.ServiceClient, clusterTemplateID string) (string, error)
- func CreateKubernetesClusterTemplate(t *testing.T, client *gophercloud.ServiceClient) (*clustertemplates.ClusterTemplate, error)
- func CreateQuota(t *testing.T, client *gophercloud.ServiceClient) (*quotas.Quotas, error)
- func DeleteCluster(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteClusterTemplate(t *testing.T, client *gophercloud.ServiceClient, id string)
- func WaitForCluster(client *gophercloud.ServiceClient, clusterID string, status string, ...) error
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 ¶
CreateQuota will create a random quota. An error will be returned if the quota could not be created.
func DeleteCluster ¶
func DeleteClusterTemplate ¶
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.
Types ¶
This section is empty.