Documentation ¶
Index ¶
- Constants
- func GetUnderlyingStorage() storage.Storage
- func New(ctx context.Context, cfg map[string]string, basePath string) (storage.Storage, error)
- func RunMaintenance(ctx context.Context, st storage.Storage, safety string) error
- func SetUnderlyingStorage(st storage.Storage)
- type LoggingUploadProgress
- func (p *LoggingUploadProgress) CachedFile(fname string, numBytes int64)
- func (p *LoggingUploadProgress) Error(path string, err error, isIgnored bool)
- func (p *LoggingUploadProgress) EstimatedDataSize(fileCount int, totalBytes int64)
- func (p *LoggingUploadProgress) ExcludedDir(dirname string)
- func (p *LoggingUploadProgress) ExcludedFile(fname string, numBytes int64)
- func (p *LoggingUploadProgress) FinishedDirectory(dirname string)
- func (p *LoggingUploadProgress) FinishedFile(fname string, err error)
- func (p *LoggingUploadProgress) FinishedHashingFile(fname string, numBytes int64)
- func (p *LoggingUploadProgress) HashedBytes(numBytes int64)
- func (p *LoggingUploadProgress) HashingFile(fname string)
- func (p *LoggingUploadProgress) StartedDirectory(dirname string)
- func (p *LoggingUploadProgress) UploadFinished()
- func (p *LoggingUploadProgress) UploadStarted()
- func (p *LoggingUploadProgress) UploadedBytes(numBytes int64)
Constants ¶
View Source
const ( RepoRootKey = "kopia.repo_root" PasswordKey = "kopia.password" DisableCacheKey = "kopia.disable_cache" )
Variables ¶
This section is empty.
Functions ¶
func GetUnderlyingStorage ¶
func RunMaintenance ¶
func SetUnderlyingStorage ¶
Types ¶
type LoggingUploadProgress ¶
type LoggingUploadProgress struct {
// contains filtered or unexported fields
}
LoggingUploadProgress is an implementation of UploadProgress.
func (*LoggingUploadProgress) CachedFile ¶
func (p *LoggingUploadProgress) CachedFile(fname string, numBytes int64)
CachedFile implements UploadProgress.
func (*LoggingUploadProgress) Error ¶
func (p *LoggingUploadProgress) Error(path string, err error, isIgnored bool)
Error implements UploadProgress.
func (*LoggingUploadProgress) EstimatedDataSize ¶
func (p *LoggingUploadProgress) EstimatedDataSize(fileCount int, totalBytes int64)
EstimatedDataSize implements UploadProgress.
func (*LoggingUploadProgress) ExcludedDir ¶
func (p *LoggingUploadProgress) ExcludedDir(dirname string)
ExcludedDir implements UploadProgress.
func (*LoggingUploadProgress) ExcludedFile ¶
func (p *LoggingUploadProgress) ExcludedFile(fname string, numBytes int64)
ExcludedFile implements UploadProgress.
func (*LoggingUploadProgress) FinishedDirectory ¶
func (p *LoggingUploadProgress) FinishedDirectory(dirname string)
FinishedDirectory implements UploadProgress.
func (*LoggingUploadProgress) FinishedFile ¶
func (p *LoggingUploadProgress) FinishedFile(fname string, err error)
FinishedFile implements UploadProgress.
func (*LoggingUploadProgress) FinishedHashingFile ¶
func (p *LoggingUploadProgress) FinishedHashingFile(fname string, numBytes int64)
FinishedHashingFile implements UploadProgress.
func (*LoggingUploadProgress) HashedBytes ¶
func (p *LoggingUploadProgress) HashedBytes(numBytes int64)
HashedBytes implements UploadProgress.
func (*LoggingUploadProgress) HashingFile ¶
func (p *LoggingUploadProgress) HashingFile(fname string)
HashingFile implements UploadProgress.
func (*LoggingUploadProgress) StartedDirectory ¶
func (p *LoggingUploadProgress) StartedDirectory(dirname string)
StartedDirectory implements UploadProgress.
func (*LoggingUploadProgress) UploadFinished ¶
func (p *LoggingUploadProgress) UploadFinished()
UploadFinished implements UploadProgress.
func (*LoggingUploadProgress) UploadStarted ¶
func (p *LoggingUploadProgress) UploadStarted()
UploadStarted implements UploadProgress.
func (*LoggingUploadProgress) UploadedBytes ¶
func (p *LoggingUploadProgress) UploadedBytes(numBytes int64)
UploadedBytes implements UploadProgress.
Click to show internal directories.
Click to hide internal directories.