safe

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2016 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name      string `json:"name"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	CreatedOn int64  `json:"createdOn"`
}

func NewAccount

func NewAccount(name, username, password string) Account

type Safe

type Safe struct {
	Accounts map[string]Account `json:"accounts"`
	// contains filtered or unexported fields
}

func Load

func Load(password []byte, backend backends.Backend) (*Safe, error)

func (*Safe) Add

func (s *Safe) Add(name, username, password string) error

func (*Safe) Cat

func (s *Safe) Cat(name string) (*Account, error)

func (*Safe) Copy

func (s *Safe) Copy(name string) error

func (*Safe) List

func (s *Safe) List() []Account

func (*Safe) Remove

func (s *Safe) Remove(name string) error

Jump to

Keyboard shortcuts

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