vault

package
v0.0.0-...-cc0329b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AddUsage = "usage: \n\tadd -u username -p password -w website"
View Source
const AvailableCmd = "the commands available are: setup, add, reset, help"
View Source
const HelpUsage = "usage: \n\thelp <command>\n\n"
View Source
const ResetUsage = "usage: \n\treset"
View Source
const SetupUsage = "usage: \n\tsetup -s secret -o output.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFlags

type AddFlags struct {
	Username *string
	Password *string
	Website  *string
}

type Flags

type Flags struct {
	Setup    SetupFlags
	Add      AddFlags
	SetupCmd *flag.FlagSet
	AddCmd   *flag.FlagSet
}

func InitFlags

func InitFlags() Flags

type HelpFlags

type HelpFlags struct {
	Opt *string
}

type Record

type Record struct {
	Username []byte `json:"username"`
	Password []byte `json:"password"`
}

type ResetFlags

type ResetFlags struct {
	Confirm *string
}

type SetupFlags

type SetupFlags struct {
	Secret *string
	Output *string
}

type Vault

type Vault struct {
	Cipher  cipher.AEAD
	OutputF string
}

func (*Vault) Add

func (v *Vault) Add(name, pwd, site string) (err error)

func (*Vault) Help

func (v *Vault) Help(command string) error

func (*Vault) Reset

func (v *Vault) Reset() (err error)

func (*Vault) Setup

func (v *Vault) Setup(secret []byte, output string) (err error)

Jump to

Keyboard shortcuts

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