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 ( // Deprecated: CreateSuccess is deprecated and will be removed after 14th November 2025. Use [dns.ZONESTATE_CREATE_SUCCEEDED] or [dns.RECORDSETSTATE_CREATE_SUCCEEDED] instead. CreateSuccess = "CREATE_SUCCEEDED" // Deprecated: CreateFail is deprecated and will be removed after 14th November 2025. Use [dns.ZONESTATE_CREATE_FAILED] or [dns.RECORDSETSTATE_CREATE_FAILED] instead. CreateFail = "CREATE_FAILED" // Deprecated: UpdateSuccess is deprecated and will be removed after 14th November 2025. Use [dns.ZONESTATE_UPDATE_SUCCEEDED] or [dns.RECORDSETSTATE_UPDATE_SUCCEEDED] instead. UpdateSuccess = "UPDATE_SUCCEEDED" // Deprecated: UpdateSuccess is deprecated and will be removed after 14th November 2025. Use [dns.ZONESTATE_UPDATE_FAILED] or [dns.RECORDSETSTATE_UPDATE_FAILED] instead. UpdateFail = "UPDATE_FAILED" // Deprecated: UpdateSuccess is deprecated and will be removed after 14th November 2025. Use [dns.ZONESTATE_DELETE_SUCCEEDED] or [dns.RECORDSETSTATE_DELETE_SUCCEEDED] instead. DeleteSuccess = "DELETE_SUCCEEDED" // Deprecated: UpdateSuccess is deprecated and will be removed after 14th November 2025. Use [dns.ZONESTATE_DELETE_FAILED] or [dns.RECORDSETSTATE_DELETE_FAILED] instead. 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.