uploader

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

View Source
const (
	ResticType = "restic"
	KopiaType  = "kopia"
)

Variables

This section is empty.

Functions

func ValidateUploaderType

func ValidateUploaderType(t string) error

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 SnapshotInfo struct {
	ID   string `json:"id"`
	Size int64  `json:"Size"`
}

type UploaderProgress

type UploaderProgress struct {
	TotalBytes int64 `json:"totalBytes,omitempty"`
	BytesDone  int64 `json:"doneBytes,omitempty"`
}

UploaderProgress which defined two variables to record progress

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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