vault

package
v0.0.0-...-b9362b4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(vaultPassword string, dir string) error

func SetScryptSettings

func SetScryptSettings(N int, r int, p int, dir string)

Types

type Password

type Password struct {
	Name     string            `json:"name"`
	Password string            `json:"password"`
	Metadata map[string]string `json:"metadata"`
}

type ScryptSettings

type ScryptSettings struct {
	N int `json:"N"` //CPU
	R int `json:"r"` //RAM
	P int `json:"p"` //Parallelism
}

type Vault

type Vault struct {
	Passwords map[string]*Password
}

func Load

func Load(vaultPassword string, dir string) (*Vault, error)

func (Vault) Save

func (vault Vault) Save(vaultPassword string, dir string) error

Jump to

Keyboard shortcuts

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