data

package
v0.0.0-...-7bb13b1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryFlagDeleted = (1 << 0)
)

Variables

View Source
var ErrDropboxNotFound = errors.New("not found on dropbox remote")
View Source
var ErrInvalidDropboxToken = errors.New("invalid dropbox token, sorry")
View Source
var ErrVersionMismatch = errors.New("version mismatch")

Functions

func Cleanup

func Cleanup()

func CreateCSPassword

func CreateCSPassword(n int) string

func GetRemote

func GetRemote(id uint64) ([]byte, error)

func GetSealedTomb

func GetSealedTomb() []byte

func Init

func Init()

func InitTomb

func InitTomb()

func IsTomb

func IsTomb() bool

func KillBytes

func KillBytes(ba *[]byte)

func PutRemote

func PutRemote(id uint64, data []byte) error

func ScatterPassphrase

func ScatterPassphrase(bpp *[]byte)

func SealThisTomb

func SealThisTomb(dataz []byte) error

func SealTomb

func SealTomb(tomb *Tomb)

Types

type Entry

type Entry struct {
	Clock uint32   `gob:"clk"`
	Key   string   `gob:"k"`
	Value string   `gob:"v"`
	Tags  []string `gob:"a"`
	Flags uint32   `gob:"f"`
}

type Tomb

type Tomb struct {
	ID         uint64  `gob:"id"`
	Version    uint64  `gob:"ver"`
	RandomPad0 []byte  `gob:"r0"`
	Entries    []Entry `gob:"es"`
	RandomPad1 []byte  `god:"r1"`
}

func OpenThisTomb

func OpenThisTomb(file []byte) (Tomb, error)

func OpenTomb

func OpenTomb() (Tomb, error)

Jump to

Keyboard shortcuts

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