Documentation ¶
Index ¶
- type API
- func (a *API) Get(ctx context.Context, subscription int, database int) (*LatestBackupStatus, error)
- func (a *API) GetActiveActive(ctx context.Context, subscription int, database int, region string) (*LatestBackupStatus, error)
- func (a *API) GetFixed(ctx context.Context, subscription int, database int) (*LatestBackupStatus, error)
- type Error
- type HttpClient
- type LatestBackupStatus
- type Log
- type NotFound
- type NotFoundActiveActive
- type Response
- type TaskWaiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(client HttpClient, taskWaiter TaskWaiter, logger Log) *API
func (*API) GetActiveActive ¶
type Error ¶
type Error struct { Type *string `json:"type,omitempty"` Description *string `json:"description,omitempty"` Status *string `json:"status,omitempty"` }
func (*Error) StatusCode ¶
type HttpClient ¶
type LatestBackupStatus ¶
type LatestBackupStatus struct { CommandType *string `json:"commandType,omitempty"` Description *string `json:"description,omitempty"` Status *string `json:"status,omitempty"` ID *string `json:"taskId,omitempty"` Response *Response `json:"response,omitempty"` }
func NewLatestBackupStatus ¶
func NewLatestBackupStatus(task *internal.Task) *LatestBackupStatus
func (LatestBackupStatus) String ¶
func (o LatestBackupStatus) String() string
type NotFoundActiveActive ¶
type NotFoundActiveActive struct {
// contains filtered or unexported fields
}
func (*NotFoundActiveActive) Error ¶
func (f *NotFoundActiveActive) Error() string
Click to show internal directories.
Click to hide internal directories.