Documentation ¶
Index ¶
- func CreateRecordSet(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone) (*recordsets.RecordSet, error)
- func CreateSecondaryZone(t *testing.T, client *gophercloud.ServiceClient) (*zones.Zone, error)
- func CreateZone(t *testing.T, client *gophercloud.ServiceClient) (*zones.Zone, error)
- func DeleteRecordSet(t *testing.T, client *gophercloud.ServiceClient, rs *recordsets.RecordSet)
- func DeleteZone(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone)
- func WaitForRecordSetStatus(client *gophercloud.ServiceClient, rs *recordsets.RecordSet, status string) error
- func WaitForZoneStatus(client *gophercloud.ServiceClient, zone *zones.Zone, status string) error
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.