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 CreateTransferAccept(t *testing.T, client *gophercloud.ServiceClient, zoneTransferRequestID string, ...) (*transferAccepts.TransferAccept, error)
- func CreateTransferRequest(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone, ...) (*transferRequests.TransferRequest, error)
- func CreateZone(t *testing.T, client *gophercloud.ServiceClient) (*zones.Zone, error)
- func DeleteRecordSet(t *testing.T, client *gophercloud.ServiceClient, rs *recordsets.RecordSet)
- func DeleteTransferRequest(t *testing.T, client *gophercloud.ServiceClient, ...)
- func DeleteZone(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone)
- func WaitForRecordSetStatus(client *gophercloud.ServiceClient, rs *recordsets.RecordSet, status string) error
- func WaitForTransferAcceptStatus(client *gophercloud.ServiceClient, ta *transferAccepts.TransferAccept, ...) error
- func WaitForTransferRequestStatus(client *gophercloud.ServiceClient, tr *transferRequests.TransferRequest, ...) 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 CreateTransferAccept ¶ added in v0.14.0
func CreateTransferAccept(t *testing.T, client *gophercloud.ServiceClient, zoneTransferRequestID string, key string) (*transferAccepts.TransferAccept, error)
CreateTransferAccept will accept a spectified Transfer Request. An error will be returned if the zone transfer accept was unable to be created.
func CreateTransferRequest ¶ added in v0.14.0
func CreateTransferRequest(t *testing.T, client *gophercloud.ServiceClient, zone *zones.Zone, targetProjectID string) (*transferRequests.TransferRequest, error)
CreateTransferRequest will create a Transfer Request to a spectified Zone. An error will be returned if the zone transfer request was unable to be created.
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 DeleteTransferRequest ¶ added in v0.14.0
func DeleteTransferRequest(t *testing.T, client *gophercloud.ServiceClient, tr *transferRequests.TransferRequest)
DeleteTransferRequest will delete a specified zone transfer request. A fatal error will occur if the transfer request 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 WaitForTransferAcceptStatus ¶ added in v0.14.0
func WaitForTransferAcceptStatus(client *gophercloud.ServiceClient, ta *transferAccepts.TransferAccept, status string) error
WaitForTransferAcceptStatus will poll a transfer accept's status until it either matches the specified status or the status becomes ERROR.
func WaitForTransferRequestStatus ¶ added in v0.14.0
func WaitForTransferRequestStatus(client *gophercloud.ServiceClient, tr *transferRequests.TransferRequest, status string) error
WaitForTransferRequestStatus will poll a transfer reqeust'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.