snap

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PSKLen = 16

Variables

This section is empty.

Functions

func GenPSK

func GenPSK(key *rsa.PublicKey) (string, string, error)

GenPSK - generate psk and encrypt it.

func HandleSnapsStream

func HandleSnapsStream(logTag string, data *dcmgmt.AggrSnaps, filename string, stream <-chan *dcmgmt.InstancedSnaps, wg *sync.WaitGroup)

HandleSnapsStream - handle stats stream and update snaps and write to the file.

Types

type IncomingSnaps

type IncomingSnaps struct {
	Snaps []*snapCore.EncryptedBrigade `json:"snaps"`

	TotalCount  int `json:"total_count"`
	ErrorsCount int `json:"errors_count"`
}

IncomingSnaps - structure for aggregated snapshots.

Jump to

Keyboard shortcuts

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