snap

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MPL-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LockerSecretSize = 16
	SecretSize       = 16
)

Variables

View Source
var ErrEmptyTag = fmt.Errorf("empty tag")

Functions

func CompressEncryptSnapshot

func CompressEncryptSnapshot(r io.Reader, secret []byte) ([]byte, error)

func DecryptDecompressSnapshot

func DecryptDecompressSnapshot(r io.Reader, secret []byte) ([]byte, error)

func MakeSnapshot

func MakeSnapshot(r io.Reader, opts SnapOpts) ([]byte, error)

Types

type SnapOpts

type SnapOpts struct {
	BrigadeID    string
	Tag          string
	GlobalSnapAt time.Time
	PSK          []byte
	RealFP       string
	RealmKey     *rsa.PublicKey
	AuthKeys     []*snapCrypto.RSAPublicKey
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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