opvault

package
v0.0.0-...-b147080 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2015 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginItem           = Category("001")
	CreditCardItem      = Category("002")
	SecureNoteItem      = Category("003")
	IdentityItem        = Category("004")
	PasswordItem        = Category("005")
	TombstoneItem       = Category("099")
	SoftwareLicenseItem = Category("100")
	BankAccountItem     = Category("101")
	DatabaseItem        = Category("102")
	DriverLicenseItem   = Category("103")
	OutdoorLicenseItem  = Category("104")
	MembershipItem      = Category("105")
	PassportItem        = Category("106")
	RewardsItem         = Category("107")
	SSNItem             = Category("108")
	RouterItem          = Category("109")
	ServerItem          = Category("110")
	EmailItem           = Category("111")
)

Variables

This section is empty.

Functions

func LookupVaults

func LookupVaults() ([]string, error)

Types

type Band

type Band map[string]*Item

type Category

type Category string

func FromTypeString

func FromTypeString(str string) Category

func (Category) String

func (c Category) String() string

func (Category) TypeString

func (c Category) TypeString() string

type Folder

type Folder struct {
	UUID     string
	Parent   string
	Updated  int64
	Created  int64
	Tx       int64
	Smart    bool
	Overview []byte
}

type Folders

type Folders map[string]*Folder

type Item

type Item struct {
	UUID     string
	Category Category
	Fave     int
	Trashed  bool
	Folder   string
	O        []byte
	K        []byte
	D        []byte
	HMAC     []byte
	Tx       int64
	Updated  int64
	Created  int64

	Data *struct {
		UUID     string   `json:"uuid,omitempty"`
		Category Category `json:"category,omitempty"`

		// Overview
		Title  string `json:"title,omitempty"`
		URL    string `json:"url,omitempty"`
		Domain string `json:"domain,omitempty"`
		URLs   []struct {
			U string `json:"url,omitempty"`
			L string `json:"label,omitempty"`
		}

		// Data
		BackupKeys [][]byte `json:"backupKeys"`
		Password   string   `json:"password,omitempty"`
		Fields     []struct {
			Type        string `json:"type,omitempty"`
			Name        string `json:"name,omitempty"`
			Designation string `json:"designation,omitempty"`
			Value       string `json:"value,omitempty"`
		} `json:"fields,omitempty"`
	}
}

func (*Item) Decrypt

func (i *Item) Decrypt(v *Vault) error

func (*Item) Extract

func (i *Item) Extract(field string) (string, bool)

type Profile

type Profile struct {
	UUID          string
	UpdatedAt     int64
	CreatedAt     int64
	LastUpdatedBy string
	ProfileName   string
	PasswordHint  string
	Iterations    int
	Salt          []byte
	OverviewKey   []byte
	MasterKey     []byte
	// contains filtered or unexported fields
}

type Vault

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

func Open

func Open(path, master string) (*Vault, error)

func (*Vault) All

func (v *Vault) All() []*Item

func (*Vault) Get

func (v *Vault) Get(itemID string) (*Item, error)

Jump to

Keyboard shortcuts

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