Documentation ¶
Overview ¶
Package action implements all the handlers that are available as subcommands for gopass.
Index ¶
- func GetKey(ctx context.Context) string
- func GetPrintChars(ctx context.Context) []int
- func GetRevision(ctx context.Context) string
- func HasKey(ctx context.Context) bool
- func HasRevision(ctx context.Context) bool
- func IsAlsoClip(ctx context.Context) bool
- func IsClip(ctx context.Context) bool
- func IsOnlyClip(ctx context.Context) bool
- func IsPasswordOnly(ctx context.Context) bool
- func IsPrintQR(ctx context.Context) bool
- func ShowFlags() []cli.Flag
- func WithAlsoClip(ctx context.Context, clip bool) context.Context
- func WithClip(ctx context.Context, clip bool) context.Context
- func WithKey(ctx context.Context, sv string) context.Context
- func WithOnlyClip(ctx context.Context, clip bool) context.Context
- func WithPasswordOnly(ctx context.Context, pw bool) context.Context
- func WithPrintChars(ctx context.Context, c []int) context.Context
- func WithPrintQR(ctx context.Context, qr bool) context.Context
- func WithRevision(ctx context.Context, rev string) context.Context
- type Action
- func (s *Action) AliasesAdd(c *cli.Context) error
- func (s *Action) AliasesDelete(c *cli.Context) error
- func (s *Action) AliasesPrint(c *cli.Context) error
- func (s *Action) AliasesRemove(c *cli.Context) error
- func (s *Action) Audit(c *cli.Context) error
- func (s *Action) BinaryCopy(c *cli.Context) error
- func (s *Action) BinaryMove(c *cli.Context) error
- func (s *Action) Cat(c *cli.Context) error
- func (s *Action) Clone(c *cli.Context) error
- func (s *Action) Complete(c *cli.Context)
- func (s *Action) CompleteGenerate(c *cli.Context)
- func (s *Action) CompletionBash(c *cli.Context) error
- func (s *Action) CompletionFish(a *cli.App) error
- func (s *Action) CompletionOpenBSDKsh(a *cli.App) error
- func (s *Action) CompletionZSH(a *cli.App) error
- func (s *Action) Config(c *cli.Context) error
- func (s *Action) ConfigComplete(c *cli.Context)
- func (s *Action) Convert(c *cli.Context) error
- func (s *Action) Copy(c *cli.Context) error
- func (s *Action) Create(c *cli.Context) error
- func (s *Action) Delete(c *cli.Context) error
- func (s *Action) Edit(c *cli.Context) error
- func (s *Action) Env(c *cli.Context) error
- func (s *Action) Find(c *cli.Context) error
- func (s *Action) FindNoFuzzy(c *cli.Context) error
- func (s *Action) Fsck(c *cli.Context) error
- func (s *Action) Generate(c *cli.Context) error
- func (s *Action) GetCommands() []*cli.Command
- func (s *Action) Git(c *cli.Context) error
- func (s *Action) Grep(c *cli.Context) error
- func (s *Action) History(c *cli.Context) error
- func (s *Action) Init(c *cli.Context) error
- func (s *Action) Insert(c *cli.Context) error
- func (s *Action) IsInitialized(c *cli.Context) error
- func (s *Action) Link(c *cli.Context) error
- func (s *Action) List(c *cli.Context) error
- func (s *Action) Merge(c *cli.Context) error
- func (s *Action) MountAdd(c *cli.Context) error
- func (s *Action) MountRemove(c *cli.Context) error
- func (s *Action) MountsComplete(*cli.Context)
- func (s *Action) MountsPrint(c *cli.Context) error
- func (s *Action) Move(c *cli.Context) error
- func (s *Action) OTP(c *cli.Context) error
- func (s *Action) Process(c *cli.Context) error
- func (s *Action) RCSAddRemote(c *cli.Context) error
- func (s *Action) RCSInit(c *cli.Context) error
- func (s *Action) RCSPull(c *cli.Context) error
- func (s *Action) RCSPush(c *cli.Context) error
- func (s *Action) RCSRemoveRemote(c *cli.Context) error
- func (s *Action) RCSStatus(c *cli.Context) error
- func (s *Action) REPL(c *cli.Context) error
- func (s *Action) RecipientsAdd(c *cli.Context) error
- func (s *Action) RecipientsComplete(c *cli.Context)
- func (s *Action) RecipientsPrint(c *cli.Context) error
- func (s *Action) RecipientsRemove(c *cli.Context) error
- func (s *Action) Setup(c *cli.Context) error
- func (s *Action) Show(c *cli.Context) error
- func (s *Action) String() string
- func (s *Action) Sum(c *cli.Context) error
- func (s *Action) Sync(c *cli.Context) error
- func (s *Action) TemplateEdit(c *cli.Context) error
- func (s *Action) TemplatePrint(c *cli.Context) error
- func (s *Action) TemplateRemove(c *cli.Context) error
- func (s *Action) TemplatesComplete(c *cli.Context)
- func (s *Action) TemplatesPrint(c *cli.Context) error
- func (s *Action) Unclip(c *cli.Context) error
- func (s *Action) Update(c *cli.Context) error
- func (s *Action) Version(c *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrintChars ¶
GetPrintChars returns a map of all character positions to print.
func GetRevision ¶
GetRevision returns the revison set in this context or an empty string.
func HasRevision ¶
HasRevision returns true if a value for revision was set in this context.
func IsAlsoClip ¶
IsAlsoClip returns the value for alsoclip of the dfeault (false).
func IsOnlyClip ¶
IsOnlyClip returns the value of clip or the default (false).
func IsPasswordOnly ¶
IsPasswordOnly returns the value of password only or the default (false).
func ShowFlags ¶
func ShowFlags() []cli.Flag
ShowFlags returns the flags for the show command. Exported to re-use in main for the default command.
func WithAlsoClip ¶
WithAlsoClip returns a context with the value for alsoclip (copy to clipboard and print to stdout) set.
func WithOnlyClip ¶
WithOnlyClip returns a context with the value for clip (for copy to clipboard) set.
func WithPasswordOnly ¶
WithPasswordOnly returns a context with the value of password only set.
func WithPrintChars ¶
WithPrintChars returns the context with the print chars set.
func WithPrintQR ¶
WithPrintQR returns a context with the value of print QR set.
Types ¶
type Action ¶
Action knows everything to run gopass CLI actions.
func (*Action) AliasesAdd ¶
AliasesAdd adds a single alias to a domain.
func (*Action) AliasesDelete ¶
AliasesDelete remove an alias mapping for a domain.
func (*Action) AliasesPrint ¶
AliasesPrint prints all cofigured aliases.
func (*Action) AliasesRemove ¶
AliasesRemove removes a single alias from a domain.
func (*Action) BinaryCopy ¶
BinaryCopy copies either from the filesystem to the store or from the store. to the filesystem.
func (*Action) BinaryMove ¶
BinaryMove works like Copy but will remove (shred/wipe) the source after a successful copy. Mostly useful for securely moving secrets into the store if they are no longer needed / wanted on disk afterwards.
func (*Action) Complete ¶
func (s *Action) Complete(c *cli.Context)
Complete prints a list of all password names to os.Stdout.
func (*Action) CompleteGenerate ¶
func (s *Action) CompleteGenerate(c *cli.Context)
CompleteGenerate implements the completion heuristic for the generate command.
func (*Action) CompletionBash ¶
CompletionBash returns a bash script used for auto completion.
func (*Action) CompletionFish ¶
CompletionFish returns an autocompletion script for fish.
func (*Action) CompletionOpenBSDKsh ¶
CompletionOpenBSDKsh returns an OpenBSD ksh script used for auto completion.
func (*Action) CompletionZSH ¶
CompletionZSH returns a zsh completion script.
func (*Action) ConfigComplete ¶
func (s *Action) ConfigComplete(c *cli.Context)
ConfigComplete will print the list of valid config keys.
func (*Action) Env ¶
Env implements the env subcommand. It populates the environment of a subprocess with a set of environment variables corresponding to the secret subtree specified on the command line.
func (*Action) FindNoFuzzy ¶
FindNoFuzzy runs find without fuzzy search.
func (*Action) GetCommands ¶
func (s *Action) GetCommands() []*cli.Command
GetCommands returns the cli commands exported by this module.
func (*Action) IsInitialized ¶
IsInitialized returns an error if the store is not properly prepared.
func (*Action) List ¶
List all secrets as a tree. If the filter argument is non-empty display only those that have this prefix.
func (*Action) MountRemove ¶
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 ¶
MountsPrint prints all existing mounts.
func (*Action) Process ¶
Process is a command to process a template and replace secrets contained in it.
func (*Action) RCSAddRemote ¶
RCSAddRemote adds a new git remote.
func (*Action) RCSRemoveRemote ¶
RCSRemoveRemote removes a git remote.
func (*Action) REPL ¶
REPL implements a read-execute-print-line shell with readline support and autocompletion.
func (*Action) RecipientsAdd ¶
RecipientsAdd adds new recipients.
func (*Action) RecipientsComplete ¶
func (s *Action) RecipientsComplete(c *cli.Context)
RecipientsComplete will print a list of recipients for bash completion.
func (*Action) RecipientsPrint ¶
RecipientsPrint prints all recipients per store.
func (*Action) RecipientsRemove ¶
RecipientsRemove removes recipients.
func (*Action) TemplateEdit ¶
TemplateEdit will load and existing or new template into an editor.
func (*Action) TemplatePrint ¶
TemplatePrint will lookup and print a single template.
func (*Action) TemplateRemove ¶
TemplateRemove will remove a single template.
func (*Action) TemplatesComplete ¶
func (s *Action) TemplatesComplete(c *cli.Context)
TemplatesComplete prints a list of all templates for bash completion.
func (*Action) TemplatesPrint ¶
TemplatesPrint will pretty-print a tree of templates.
Source Files ¶
- action.go
- aliases.go
- audit.go
- binary.go
- clihelper.go
- clone.go
- commands.go
- completion.go
- config.go
- context.go
- convert.go
- copy.go
- create.go
- delete.go
- doc.go
- edit.go
- env.go
- find.go
- fsck.go
- generate.go
- git.go
- grep.go
- history.go
- init.go
- insert.go
- link.go
- list.go
- merge.go
- mount.go
- move.go
- otp.go
- process.go
- rcs.go
- recipients.go
- reminder.go
- repl.go
- setup.go
- show.go
- sync.go
- templates.go
- unclip.go
- update.go
- version.go