action

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name  string
	Store *password.RootStore
}

Action knows everything to run gopass CLI actions

func New

func New(v string) *Action

New returns a new Action wrapper

func (*Action) Clone

func (s *Action) Clone(c *cli.Context) error

Clone will fetch and mount a new password store from a git repo

func (*Action) Complete

func (s *Action) Complete(*cli.Context)

Complete prints a list of all password names to os.Stdout

func (*Action) CompletionBash

func (s *Action) CompletionBash(c *cli.Context) error

CompletionBash returns a bash script used for auto completion

func (*Action) CompletionZSH

func (s *Action) CompletionZSH(c *cli.Context) error

CompletionZSH returns a script that uses bash's auto completion

func (*Action) Config

func (s *Action) Config(c *cli.Context) error

Config handles changes to the gopass configuration

func (*Action) Copy

func (s *Action) Copy(c *cli.Context) error

Copy the contents of a file to another one

func (*Action) Delete

func (s *Action) Delete(c *cli.Context) error

Delete a secret file with its content

func (*Action) Edit

func (s *Action) Edit(c *cli.Context) error

Edit the content of a password file

func (*Action) Find

func (s *Action) Find(c *cli.Context) error

Find a string in the secret file's name

func (*Action) Fsck

func (s *Action) Fsck(c *cli.Context) error

Fsck checks the store integrity

func (*Action) Generate

func (s *Action) Generate(c *cli.Context) error

Generate & save a password

func (*Action) Git

func (s *Action) Git(c *cli.Context) error

Git runs git commands inside the store or mounts

func (*Action) GitInit

func (s *Action) GitInit(c *cli.Context) error

GitInit initializes a git repo

func (*Action) Grep

func (s *Action) Grep(c *cli.Context) error

Grep searches a string inside the content of all files

func (*Action) Init

func (s *Action) Init(c *cli.Context) error

Init a new password store with a first gpg id

func (*Action) Initialized

func (s *Action) Initialized(*cli.Context) error

Initialized returns an error if the store is not properly prepared.

func (*Action) Insert

func (s *Action) Insert(c *cli.Context) error

Insert a string as content to a secret file

func (*Action) List

func (s *Action) List(c *cli.Context) error

List all secrets as a tree

func (*Action) MountAdd

func (s *Action) MountAdd(c *cli.Context) error

MountAdd adds a new mount

func (*Action) MountRemove

func (s *Action) MountRemove(c *cli.Context) error

MountRemove removes an existing mount

func (*Action) MountsComplete

func (s *Action) MountsComplete(*cli.Context)

MountsComplete will print a list of existings mount points for bash completion

func (*Action) MountsPrint

func (s *Action) MountsPrint(c *cli.Context) error

MountsPrint prints all existing mounts

func (*Action) Move

func (s *Action) Move(c *cli.Context) error

Move the content from one secret to another

func (*Action) RecipientsAdd

func (s *Action) RecipientsAdd(c *cli.Context) error

RecipientsAdd adds new recipients

func (*Action) RecipientsComplete

func (s *Action) RecipientsComplete(*cli.Context)

RecipientsComplete will print a list of recipients for bash completion

func (*Action) RecipientsPrint

func (s *Action) RecipientsPrint(c *cli.Context) error

RecipientsPrint prints all recipients per store

func (*Action) RecipientsRemove

func (s *Action) RecipientsRemove(c *cli.Context) error

RecipientsRemove removes recipients

func (*Action) Show

func (s *Action) Show(c *cli.Context) error

Show the content of a secret file

func (*Action) String

func (s *Action) String() string

String implement fmt.Stringer

func (*Action) Unclip

func (s *Action) Unclip(c *cli.Context) error

Unclip tries to erase the content of the clipboard

func (*Action) Version

func (s *Action) Version(c *cli.Context) error

Version prints the gopass version

Jump to

Keyboard shortcuts

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