kopia

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepoRootKey     = "kopia.repo_root"
	PasswordKey     = "kopia.password"
	DisableCacheKey = "kopia.disable_cache"
)

Variables

This section is empty.

Functions

func GetUnderlyingStorage

func GetUnderlyingStorage() storage.Storage

func New

func New(ctx context.Context, cfg map[string]string, basePath string) (storage.Storage, error)

func RunMaintenance

func RunMaintenance(ctx context.Context, st storage.Storage, safety string) error

func SetUnderlyingStorage

func SetUnderlyingStorage(st storage.Storage)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL