action

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BinarySuffix is the suffix that is appended to binaries in the store
	BinarySuffix = ".b64"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name  string
	Store *root.Store
	// contains filtered or unexported fields
}

Action knows everything to run gopass CLI actions

func New

func New(v string) *Action

New returns a new Action wrapper

func (*Action) BinaryCat added in v1.2.0

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

BinaryCat prints to or reads from STDIN/STDOUT

func (*Action) BinaryCopy added in v1.2.0

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

BinaryCopy copies either from the filesystem to the store or from the store to the filesystem

func (*Action) BinaryMove added in v1.2.0

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

BinaryMove works like BinaryCopy but will remove (shred/wipe) the source after a successfull copy. Mostly useful for securely moving secrets into the store if they are no longer needed / wanted on disk afterwards

func (*Action) BinarySum added in v1.2.0

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

BinarySum decodes binary content and computes the SHA256 checksum

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) TemplateEdit added in v1.1.0

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

TemplateEdit will load and existing or new template into an editor

func (*Action) TemplatePrint added in v1.1.0

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

TemplatePrint will lookup and print a single template

func (*Action) TemplateRemove added in v1.1.0

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

TemplateRemove will remove a single template

func (*Action) TemplatesComplete added in v1.1.0

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

TemplatesComplete prints a list of all templates for bash completion

func (*Action) TemplatesPrint added in v1.1.0

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

TemplatesPrint will pretty-print a tree of templates

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