Documentation ¶
Index ¶
- Constants
- func CreateRecordSetWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[dns.RecordSetResponse]
- func CreateZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[dns.ZoneResponse]
- func DeleteRecordSetWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[dns.RecordSetResponse]
- func DeleteZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[dns.ZoneResponse]
- func PartialUpdateRecordSetWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[dns.RecordSetResponse]
- func PartialUpdateZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[dns.ZoneResponse]
- type APIClientInterface
Constants ¶
View Source
const ( CreateSuccess = "CREATE_SUCCEEDED" CreateFail = "CREATE_FAILED" UpdateSuccess = "UPDATE_SUCCEEDED" UpdateFail = "UPDATE_FAILED" DeleteSuccess = "DELETE_SUCCEEDED" DeleteFail = "DELETE_FAILED" )
Variables ¶
This section is empty.
Functions ¶
func CreateRecordSetWaitHandler ¶
func CreateRecordSetWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId, rrSetId string) *wait.AsyncActionHandler[dns.RecordSetResponse]
CreateRecordWaitHandler will wait for recordset creation
func CreateZoneWaitHandler ¶
func CreateZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[dns.ZoneResponse]
CreateZoneWaitHandler will wait for zone creation
func DeleteRecordSetWaitHandler ¶
func DeleteRecordSetWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId, rrSetId string) *wait.AsyncActionHandler[dns.RecordSetResponse]
DeleteRecordWaitHandler will wait for deletion returned interface is nil or *RecordSetResponse
func DeleteZoneWaitHandler ¶
func DeleteZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[dns.ZoneResponse]
DeleteZoneWaitHandler will wait for zone deletion returned interface is nil or *ZoneResponseZone
func PartialUpdateRecordSetWaitHandler ¶
func PartialUpdateRecordSetWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId, rrSetId string) *wait.AsyncActionHandler[dns.RecordSetResponse]
UpdateRecordWaitHandler will wait for recordset update
func PartialUpdateZoneWaitHandler ¶
func PartialUpdateZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[dns.ZoneResponse]
PartialUpdateZoneWaitHandler will wait for zone update
Types ¶
type APIClientInterface ¶
type APIClientInterface interface { GetZoneExecute(ctx context.Context, projectId, zoneId string) (*dns.ZoneResponse, error) GetRecordSetExecute(ctx context.Context, projectId, zoneId, rrSetId string) (*dns.RecordSetResponse, error) }
Interfaces needed for tests
Click to show internal directories.
Click to hide internal directories.