domain

package
Version: v0.0.0-...-598f67f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BandFilePattern string = "band_*.js"
	ProfileDir      string = "default"
	ProfileFile     string = "profile.js"
)

Variables

View Source
var (
	ErrInvalidHmac    = errors.New("invalid HMAC")
	ErrInvalidPass    = errors.New("invalid password")
	ErrInvalidVault   = errors.New("invalid vault (%v)")
	ErrUnknownItemCat = errors.New("unknown item category")
)
View Source
var (
	ItemCategoryEnum = newItemCategoryRegistry()
)

Functions

This section is empty.

Types

type Item

type Item struct {
	Category *ItemCategory
	Created  int64
	Details  string
	Uid      string
	Updated  int64
}

func NewItem

func NewItem(category *ItemCategory, details, uid string, created, updated int64) *Item

type ItemCategory

type ItemCategory struct {
	// contains filtered or unexported fields
}

func (*ItemCategory) GetCode

func (ic *ItemCategory) GetCode() string

func (*ItemCategory) GetName

func (ic *ItemCategory) GetName() string

type Keys

type Keys struct {
	DerivedKey  []byte
	DerivedMac  []byte
	MasterKey   []byte
	MasterMac   []byte
	OverviewKey []byte
	OverviewMac []byte
}

func NewKeys

func NewKeys(derivedKey, derivedMac, masterKey, masterMac, overviewKey, overviewMac []byte) *Keys

type RawItem

type RawItem struct {
	Category string
	Created  int64
	Details  string
	Hmac     string
	Keys     string
	Overview string
	Trashed  bool
	Uid      string
	Updated  int64
}

func NewRawItem

func NewRawItem(category, details, hmac, keys, overview, uid string, created, updated int64, trashed bool) *RawItem

type SimpleItem

type SimpleItem struct {
	Title string
	Uid   string
}

func NewSimpleItem

func NewSimpleItem(title, uid string) *SimpleItem

type Vault

type Vault struct {
	Path string
}

func NewVault

func NewVault(path string) *Vault

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL