cmd

package
v0.0.0-...-ed45f3b Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// MongoDB is used to mock and encapsulated abstract database functionality.
	MongoDB mongoCli.Database
	// Stdio is used for testing virtuall terminal.
	Stdio terminal.Stdio

	// Client is used to mock represent Client for mongodb
	Client *mongo.Client
	// Crypt is used to mock and encapsulated abstract encrypt functionality.
	Crypt crypt.Crypter
)

Functions

func Execute

func Execute()

Execute executes the root command.

func NewAddCmd

func NewAddCmd() *cobra.Command

NewAddCmd creates a new addCmd

func NewChangeCmd

func NewChangeCmd() *cobra.Command

NewChangeCmd creates a new newCmd

func NewCopyCmd

func NewCopyCmd() *cobra.Command

NewCopyCmd creates a new copyCmd

func NewEditCmd

func NewEditCmd() *cobra.Command

NewEditCmd creates a new editCmd

func NewGetCmd

func NewGetCmd() *cobra.Command

NewGetCmd creates a new getCmd

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd creates a new i

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd creates a new listCmd

func NewLoginCmd

func NewLoginCmd() *cobra.Command

NewLoginCmd creates a new loginCmd

func NewLogoutCmd

func NewLogoutCmd() *cobra.Command

NewLogoutCmd creates a new logoutCmd

func NewRemoveCmd

func NewRemoveCmd() *cobra.Command

NewRemoveCmd creates a new removeCmd

Types

type User

type User struct {
	Password  []byte
	VaultPwd  []byte
	VaultPath string
	VaultData []byte
}

User contains current logged user

func EnterSession

func EnterSession() (User, error)

EnterSession prompts to enter Session Key and ask for master password

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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