common

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrS3MissingBucketKey = errors.New("missing S3 bucket or object key")
	ErrS3UnknownScheme    = errors.New("unknown URI scheme")
)

Exported error messages

View Source
var ErrBadSignature = errors.New("Signature validation failed.  " +
	"Please check your backup file and associated signature.")

ErrBadSignature indicates failed signature validation

Functions

func ReadData

func ReadData(src, key string) ([]byte, error)

ReadData reads an encrypted/compressed file or S3 datastore object and validates checksums

func WriteData

func WriteData(dest, key string, data []byte) error

WriteData writes an encrypted/compressed object and signature to a local file or s3 datastore

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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