Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupIn ¶
type BackupIn struct { DBPort uint16 `json:"db_port"` DBName string `json:"db_name"` Username string `json:"username"` Password string `json:"password"` DnBackupPath string `json:"dn_backup_path"` DnThreadsNum uint8 `json:"dn_threads_num"` DnBackupMode string `json:"dn_backup_mode"` Instance string `json:"instance"` }
type BackupInfo ¶
type BackupInfo struct { ID string `json:"dn_backup_id"` Path string `json:"dn_backup_path"` Mode string `json:"db_backup_mode"` Instance string `json:"instance"` StartTime string `json:"start_time"` EndTime string `json:"end_time"` Status string `json:"status"` }
func NewBackupInfo ¶
func NewBackupInfo(data *model.Backup, path, instance string) *BackupInfo
func NewBackupInfoList ¶
func NewBackupInfoList(list []*model.Backup, path, instance string) []BackupInfo
type DeleteBackupIn ¶
type DiskSpaceIn ¶
type DiskSpaceIn struct { // DiskPath is the path of the disk DiskPath string `json:"diskPath"` }
func (*DiskSpaceIn) Validate ¶
func (in *DiskSpaceIn) Validate() error
type HealthCheckIn ¶
type RestoreIn ¶
type RestoreIn struct { DBPort uint16 `json:"db_port"` DBName string `json:"db_name"` Username string `json:"username"` Password string `json:"password"` Instance string `json:"instance"` DnBackupPath string `json:"dn_backup_path"` DnBackupID string `json:"dn_backup_id"` DnThreadsNum uint8 `json:"dn_threads_num"` }
type ShowIn ¶
type ShowListIn ¶
type ShowListIn struct { DBPort uint16 `json:"db_port"` DBName string `json:"db_name"` Username string `json:"username"` Password string `json:"password"` DnBackupPath string `json:"dn_backup_path"` Instance string `json:"instance"` }
func (*ShowListIn) Validate ¶
func (in *ShowListIn) Validate() error
Click to show internal directories.
Click to hide internal directories.