v2

package
Version: v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRecordSet

func CreateRecordSet(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone) (*recordsets.RecordSet, error)

CreateRecordSet will create a RecordSet with a random name. An error will be returned if the zone was unable to be created.

func CreateSecondaryZone

func CreateSecondaryZone(t *testing.T, client *gophercloud.ServiceClient) (*zones.Zone, error)

CreateSecondaryZone will create a Zone with a random name. An error will be returned if the zone was unable to be created.

This is only for example purposes as it will try to do a zone transfer.

func CreateZone

func CreateZone(t *testing.T, client *gophercloud.ServiceClient) (*zones.Zone, error)

CreateZone will create a Zone with a random name. An error will be returned if the zone was unable to be created.

func DeleteRecordSet

func DeleteRecordSet(t *testing.T, client *gophercloud.ServiceClient, rs *recordsets.RecordSet)

DeleteRecordSet will delete a specified record set. A fatal error will occur if the record set failed to be deleted. This works best when used as a deferred function.

func DeleteZone

func DeleteZone(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone)

DeleteZone will delete a specified zone. A fatal error will occur if the zone failed to be deleted. This works best when used as a deferred function.

func WaitForRecordSetStatus

func WaitForRecordSetStatus(client *gophercloud.ServiceClient, rs *recordsets.RecordSet, status string) error

WaitForRecordSetStatus will poll a record set's status until it either matches the specified status or the status becomes ERROR.

func WaitForZoneStatus

func WaitForZoneStatus(client *gophercloud.ServiceClient, zone *zones.Zone, status string) error

WaitForZoneStatus will poll a zone's status until it either matches the specified status or the status becomes ERROR.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL