v2

package
v1.1.3 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: 8 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 CreateTransferAccept

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

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

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

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

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.

Jump to

Keyboard shortcuts

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