Documentation
¶
Index ¶
- Constants
- func PageFilter(num, size int, data []interface{}) (int, []interface{}, error)
- type BackupInfo
- type BoardInfo
- type DumpInfo
- type ErrorUpdate
- type FileInfo
- type LockInfo
- type LoginData
- type OtpInfo
- type Page
- type PlanInfo
- type RePwdData
- type RepoStatus
- type RepositoryInfo
- type RestoreInfo
- type StatusUpdate
- type SummaryOutput
- type TokenInfo
- type Userinfo
- type VerboseUpdate
Constants ¶
View Source
const ( PageSize = "pageSize" PageNum = "pageNum" )
View Source
const ( PageSizeD = 10 PageNumD = 1 )
默认值
Variables ¶
This section is empty.
Functions ¶
func PageFilter ¶
PageFilter 分页
Types ¶
type BackupInfo ¶
type BackupInfo struct {
RepositoryName string `json:"repositoryName"` //仓库名称
SnapshotsNum int `json:"snapshotsNum"` //快照数量
FileTotal int `json:"fileTotal"` //总文件数
DataSize uint64 `json:"dataSize"` //总数据量
DataSizeStr string `json:"dataSizeStr"` //总数据量
DataDay string `json:"dataDay"` //数据保护天数
Time time.Time `json:"time"` // 统计时间
Duration string `json:"duration"` //统计耗时
CompressionSpaceSaving string `json:"compressionSpaceSaving"` // 压缩率
TotalUncompressedSize uint64 `json:"totalUncompressedSize"` // 未压缩数据量
TotalUncompressedSizeStr string `json:"TotalUncompressedSizeStr"` // 未压缩数据量
}
BackupInfo 备份信息
type BoardInfo ¶
type BoardInfo struct {
PlanInfo PlanInfo `json:"planInfo"`
RepositoryInfo RepositoryInfo `json:"repositoryInfo"`
BackupInfo BackupInfo `json:"backupInfo"` //汇总备份数据明细
BackupInfos []BackupInfo `json:"backupInfos"` //每个仓库备份数据明细
}
type ErrorUpdate ¶
type ErrorUpdate struct {
MessageType string `json:"messageType"` // "error"
Error string `json:"error"` // 错误信息
During string `json:"during"` // 错误类型
Item string `json:"item"` // 错误目标
}
ErrorUpdate 错误
type Page ¶
type PlanInfo ¶
type PlanInfo struct {
Total int `json:"total"` // 计划总数
RunningCount int `json:"runningCount"` // 运行中数量
}
PlanInfo 计划信息
type RepoStatus ¶
type RepositoryInfo ¶
type RepositoryInfo struct {
Total int `json:"total"` // 仓库总数
RunningCount int `json:"runningCount"` // 运行中数量
}
RepositoryInfo 仓库信息
type RestoreInfo ¶
type StatusUpdate ¶
type StatusUpdate struct {
MessageType string `json:"messageType"` // "status"
SecondsElapsed string `json:"secondsElapsed"` // 已用时间
SecondsRemaining string `json:"secondsRemaining"` // 剩余时间
PercentDone float64 `json:"percentDone"` // 进度
TotalFiles uint64 `json:"totalFiles"` // 文件总数
FilesDone uint64 `json:"filesDone"` // 完成文件数
TotalBytes string `json:"totalBytes"` // 文件总大小
BytesDone string `json:"bytesDone"` // 完成文件大小
ErrorCount uint `json:"errorCount"` // 错误数量
CurrentFiles []string `json:"currentFiles"` // 当前文件列表
AvgSpeed string `json:"avgSpeed,omitempty"` //平均速度
}
StatusUpdate 进度
type SummaryOutput ¶
type SummaryOutput struct {
MessageType string `json:"messageType"` // "summary"
FilesNew uint `json:"filesNew"`
FilesChanged uint `json:"filesChanged"`
FilesUnmodified uint `json:"filesUnmodified"`
DirsNew uint `json:"dirsNew"`
DirsChanged uint `json:"dirsChanged"`
DirsUnmodified uint `json:"dirsUnmodified"`
DataBlobs int `json:"dataBlobs"`
TreeBlobs int `json:"treeBlobs"`
DataAdded string `json:"dataAdded"` //本次新增文件大小
TotalFilesProcessed uint `json:"totalFiles_processed"` // 文件总数
TotalBytesProcessed string `json:"totalBytes_processed"` // 文件总大小
TotalDuration string `json:"totalDuration"` // 总耗时 in seconds
SnapshotID string `json:"snapshotId"`
DryRun bool `json:"dryRun,omitempty"` //
}
SummaryOutput 备份完成汇总
type VerboseUpdate ¶
type VerboseUpdate struct {
MessageType string `json:"messageType"` // "verbose_status"
Action string `json:"action"`
Item string `json:"item"`
Duration string `json:"duration"` // 持续时间 in seconds
DataSize string `json:"dataSize"` // 数据量
MetadataSize string `json:"metadataSize"` // 元数据量
TotalFiles uint `json:"totalFiles"` // 总文件数
}
VerboseUpdate 完成项
Click to show internal directories.
Click to hide internal directories.