Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupInfo ¶
type BackupListInfo ¶
type BackupListInfo struct {
Id string `json:"id"`
Name string `json:"name"`
BeginTime string `json:"begin_time"`
EndTime string `json:"end_time"`
Status string `json:"status"`
TakeUpTime int `json:"take_up_time"`
Type string `json:"type"`
Size float64 `json:"size"`
Datastore MysqlDatastore `json:"datastore"`
InstanceId string `json:"instance_id"`
Description string `json:"description"`
}
func ExtractBackups ¶
func ExtractBackups(r pagination.NewPage) ([]BackupListInfo, error)
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) ([]BackupListInfo, error)
type BackupPage ¶
type BackupPage struct {
pagination.NewSinglePageBase
}
type BackupPolicy ¶
type BackupPolicy struct {
KeepDays int `json:"keep_days"`
StartTime string `json:"start_time"`
Period string `json:"period"`
}
func GetPolicy ¶
func GetPolicy(client *golangsdk.ServiceClient, instanceId string) (*BackupPolicy, error)
type CreateOpts ¶
type CreateResponse ¶
type CreateResponse struct {
Backup BackupInfo `json:"backup"`
JobId string `json:"job_id"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*CreateResponse, error)
type DeleteResponse ¶
type DeleteResponse struct {
BackupId string `json:"backup_id"`
BackupName string `json:"backup_name"`
}
func Delete ¶
func Delete(client *golangsdk.ServiceClient, backupID string) (*DeleteResponse, error)
type ListResponse ¶
type ListResponse struct {
Backups []BackupListInfo `json:"backups"`
TotalCount int64 `json:"total_count"`
}
type MysqlDatastore ¶
type UpdatePolicyOpts ¶
type UpdatePolicyResponse ¶
type UpdatePolicyResponse struct {
Status string `json:"status"`
InstanceId string `json:"instance_id"`
InstanceName string `json:"instance_name"`
}
func UpdatePolicy ¶
func UpdatePolicy(client *golangsdk.ServiceClient, opts UpdatePolicyOpts) (*UpdatePolicyResponse, error)
Click to show internal directories.
Click to hide internal directories.