uploader

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

View Source
const (
	ResticType           = "restic"
	KopiaType            = "kopia"
	SnapshotRequesterTag = "snapshot-requester"
	SnapshotUploaderTag  = "snapshot-uploader"
)

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 PersistentVolumeMode added in v1.12.0

type PersistentVolumeMode string
const (
	// PersistentVolumeBlock means the volume will not be formatted with a filesystem and will remain a raw block device.
	PersistentVolumeBlock PersistentVolumeMode = "Block"
	// PersistentVolumeFilesystem means the volume will be or is formatted with a filesystem.
	PersistentVolumeFilesystem PersistentVolumeMode = "Filesystem"
)

type Progress added in v1.12.0

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

Progress which defined two variables to record progress

type ProgressUpdater

type ProgressUpdater interface {
	UpdateProgress(p *Progress)
}

UploaderProgress which defined generic interface to update progress

type SnapshotInfo

type SnapshotInfo struct {
	ID   string `json:"id"`
	Size int64  `json:"Size"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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