Documentation ¶
Index ¶
- Constants
- func ExitError(ctx context.Context, exitCode int, err error, format string, ...) error
- func GetKey(ctx context.Context) string
- 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 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 WithPrintQR(ctx context.Context, qr bool) context.Context
- func WithRevision(ctx context.Context, rev string) context.Context
- type Action
- func (s *Action) Audit(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(c *cli.Context, a *cli.App) error
- func (s *Action) CompletionOpenBSDKsh(c *cli.Context, a *cli.App) error
- func (s *Action) CompletionZSH(c *cli.Context, a *cli.App) error
- func (s *Action) Config(c *cli.Context) error
- func (s *Action) ConfigComplete(c *cli.Context)
- func (s *Action) ConfirmRecipients(ctx context.Context, name string, recipients []string) ([]string, error)
- func (s *Action) Copy(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) GitAddRemote(c *cli.Context) error
- func (s *Action) GitCredentialBefore(c *cli.Context) error
- func (s *Action) GitCredentialConfigure(c *cli.Context) error
- func (s *Action) GitCredentialErase(c *cli.Context) error
- func (s *Action) GitCredentialGet(c *cli.Context) error
- func (s *Action) GitCredentialStore(c *cli.Context) error
- func (s *Action) GitInit(c *cli.Context) error
- func (s *Action) GitPull(c *cli.Context) error
- func (s *Action) GitPush(c *cli.Context) error
- func (s *Action) GitRemoveRemote(c *cli.Context) error
- func (s *Action) GitStatus(c *cli.Context) error
- func (s *Action) Grep(c *cli.Context) error
- func (s *Action) HIBP(c *cli.Context) error
- func (s *Action) History(c *cli.Context) error
- func (s *Action) Init(c *cli.Context) error
- func (s *Action) InitOnboarding(c *cli.Context) error
- func (s *Action) Initialized(c *cli.Context) error
- func (s *Action) Insert(c *cli.Context) error
- func (s *Action) JSONAPI(c *cli.Context) error
- func (s *Action) List(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) 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) RecipientsUpdate(c *cli.Context) error
- func (s *Action) SetupNativeMessaging(c *cli.Context) error
- func (s *Action) Show(c *cli.Context) error
- func (s *Action) String() string
- 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 ¶
const ( // ExitOK means no error (status code 0) ExitOK = iota // ExitUnknown is used if we can't determine the exact exit cause ExitUnknown // ExitUsage is used if there was some kind of invocation error ExitUsage // ExitAborted is used if the user willingly aborted an action ExitAborted // ExitUnsupported is used if an operation is not supported by gopass ExitUnsupported // ExitAlreadyInitialized is used if someone is trying to initialize // an already initialized store ExitAlreadyInitialized // ExitNotInitialized is used if someone is trying to use an unitialized // store ExitNotInitialized // ExitGit is used if any git errors are encountered ExitGit // ExitMount is used if a substore mount operation fails ExitMount // ExitNoName is used when no name was provided for a named entry ExitNoName // ExitNotFound is used if a requested secret is not found ExitNotFound // ExitDecrypt is used when reading/decrypting a secret failed ExitDecrypt // ExitEncrypt is used when writing/encrypting of a secret fails ExitEncrypt // ExitList is used when listing the store content fails ExitList // ExitAudit is used when audit report possible issues ExitAudit // ExitFsck is used when the integrity check fails ExitFsck // ExitConfig is used when config errors occur ExitConfig // ExitRecipients is used when a recipient operation fails ExitRecipients // ExitIO is used for misc. I/O errors ExitIO // ExitGPG is used for misc. gpg errors ExitGPG )
const (
// BinarySuffix is the suffix that is appended to binaries in the store
BinarySuffix = ".b64"
)
Variables ¶
This section is empty.
Functions ¶
func ExitError ¶
func ExitError(ctx context.Context, exitCode int, err error, format string, args ...interface{}) error
ExitError returns a user friendly CLI error
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 ¶ added in v1.9.1
IsAlsoClip returns the value for alsoclip of the dfeault (false).
func IsOnlyClip ¶ added in v1.9.0
IsOnlyClip returns the value of clip or the default (false)
func IsPasswordOnly ¶
IsPasswordOnly returns the value of password only or the default (false)
func WithAlsoClip ¶ added in v1.9.1
WithAlsoClip returns a context with the value for alsoclip (copy to clipboard and print to stdout) set.
func WithOnlyClip ¶ added in v1.9.0
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 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) Complete ¶
func (s *Action) Complete(c *cli.Context)
Complete prints a list of all password names to os.Stdout
func (*Action) CompleteGenerate ¶ added in v1.8.0
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) ConfirmRecipients ¶
func (s *Action) ConfirmRecipients(ctx context.Context, name string, recipients []string) ([]string, error)
ConfirmRecipients asks the user to confirm a given set of recipients
func (*Action) Env ¶ added in v1.9.0
Env implements an env subcommand the populates the env of an subprocess with a set of secrets
func (*Action) FindNoFuzzy ¶ added in v1.9.0
FindNoFuzzy runs find without fuzzy search
func (*Action) GetCommands ¶ added in v1.9.0
func (s *Action) GetCommands() []*cli.Command
GetCommands returns the cli commands exported by this module
func (*Action) GitAddRemote ¶
GitAddRemote adds a new git remote
func (*Action) GitCredentialBefore ¶ added in v1.8.0
GitCredentialBefore is executed before another git-credential command
func (*Action) GitCredentialConfigure ¶ added in v1.8.3
GitCredentialConfigure configures gopass as git's credential.helper
func (*Action) GitCredentialErase ¶ added in v1.8.0
GitCredentialErase removes a credential got from git
func (*Action) GitCredentialGet ¶ added in v1.8.0
GitCredentialGet returns a credential to git
func (*Action) GitCredentialStore ¶ added in v1.8.0
GitCredentialStore stores a credential got from git
func (*Action) GitRemoveRemote ¶
GitRemoveRemote removes a git remote
func (*Action) InitOnboarding ¶
InitOnboarding will invoke the onboarding / setup wizard
func (*Action) Initialized ¶
Initialized 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) 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) RecipientsUpdate ¶ added in v1.8.0
RecipientsUpdate will recompute and update any changed recipients list checksums
func (*Action) SetupNativeMessaging ¶
SetupNativeMessaging sets up manifest for gopass as native messaging host
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
- audit.go
- clihelper.go
- clone.go
- commands.go
- completion.go
- config.go
- context.go
- copy.go
- delete.go
- edit.go
- env.go
- errors.go
- find.go
- fsck.go
- generate.go
- git-credential.go
- git.go
- grep.go
- hibp.go
- history.go
- init.go
- insert.go
- jsonapi.go
- jsonapi_others.go
- list.go
- mount.go
- move.go
- otp.go
- recipients.go
- show.go
- sync.go
- templates.go
- unclip.go
- update.go
- version.go