Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResticType = "restic" KopiaType = "kopia" )
Variables ¶
This section is empty.
Functions ¶
func ValidateUploaderType ¶
ValidateUploaderType validates if the input param is a valid uploader type. It will return an error if it's invalid.
Types ¶
type ProgressUpdater ¶
type ProgressUpdater interface {
UpdateProgress(p *UploaderProgress)
}
UploaderProgress which defined generic interface to update progress
type SnapshotInfo ¶
type UploaderProgress ¶
type UploaderProgress struct { TotalBytes int64 `json:"totalBytes,omitempty"` BytesDone int64 `json:"doneBytes,omitempty"` }
UploaderProgress which defined two variables to record progress
Click to show internal directories.
Click to hide internal directories.