Documentation ¶
Index ¶
- Constants
- func IsClip(ctx context.Context) bool
- func IsForce(ctx context.Context) bool
- func IsPasswordOnly(ctx context.Context) bool
- func IsPrintQR(ctx context.Context) bool
- func WithClip(ctx context.Context, clip bool) context.Context
- func WithForce(ctx context.Context, force bool) context.Context
- func WithPasswordOnly(ctx context.Context, pw bool) context.Context
- func WithPrintQR(ctx context.Context, qr bool) context.Context
- type Action
- func (s *Action) AskForConfirmation(ctx context.Context, text string) bool
- func (s *Action) AskForKeyImport(ctx context.Context, key string, names []string) bool
- func (s *Action) Audit(ctx context.Context, c *cli.Context) error
- func (s *Action) BinaryCat(ctx context.Context, c *cli.Context) error
- func (s *Action) BinaryCopy(ctx context.Context, c *cli.Context) error
- func (s *Action) BinaryMove(ctx context.Context, c *cli.Context) error
- func (s *Action) BinarySum(ctx context.Context, c *cli.Context) error
- func (s *Action) Clone(ctx context.Context, c *cli.Context) error
- func (s *Action) Complete(*cli.Context)
- func (s *Action) CompletionBash(c *cli.Context) error
- func (s *Action) CompletionZSH(c *cli.Context) error
- func (s *Action) Config(ctx context.Context, 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(ctx context.Context, c *cli.Context) error
- func (s *Action) Create(ctx context.Context, c *cli.Context) error
- func (s *Action) Delete(ctx context.Context, c *cli.Context) error
- func (s *Action) Edit(ctx context.Context, c *cli.Context) error
- func (s *Action) Find(ctx context.Context, c *cli.Context) error
- func (s *Action) Fix(ctx context.Context, c *cli.Context) error
- func (s *Action) Fsck(ctx context.Context, c *cli.Context) error
- func (s *Action) Generate(ctx context.Context, c *cli.Context) error
- func (s *Action) Git(ctx context.Context, c *cli.Context) error
- func (s *Action) GitInit(ctx context.Context, c *cli.Context) error
- func (s *Action) Grep(ctx context.Context, c *cli.Context) error
- func (s *Action) HIBP(ctx context.Context, c *cli.Context) error
- func (s *Action) Init(ctx context.Context, c *cli.Context) error
- func (s *Action) InitOnboarding(ctx context.Context, c *cli.Context) error
- func (s *Action) Initialized(ctx context.Context, c *cli.Context) error
- func (s *Action) Insert(ctx context.Context, c *cli.Context) error
- func (s *Action) JSONAPI(ctx context.Context, c *cli.Context) error
- func (s *Action) List(ctx context.Context, c *cli.Context) error
- func (s *Action) MountAdd(ctx context.Context, c *cli.Context) error
- func (s *Action) MountRemove(ctx context.Context, c *cli.Context) error
- func (s *Action) MountsComplete(*cli.Context)
- func (s *Action) MountsPrint(ctx context.Context, c *cli.Context) error
- func (s *Action) Move(ctx context.Context, c *cli.Context) error
- func (s *Action) OTP(ctx context.Context, c *cli.Context) error
- func (s *Action) RecipientsAdd(ctx context.Context, c *cli.Context) error
- func (s *Action) RecipientsComplete(ctx context.Context, c *cli.Context)
- func (s *Action) RecipientsPrint(ctx context.Context, c *cli.Context) error
- func (s *Action) RecipientsRemove(ctx context.Context, c *cli.Context) error
- func (s *Action) SetupNativeMessaging(ctx context.Context, c *cli.Context) error
- func (s *Action) Show(ctx context.Context, c *cli.Context) error
- func (s *Action) String() string
- func (s *Action) Sync(ctx context.Context, c *cli.Context) error
- func (s *Action) TemplateEdit(ctx context.Context, c *cli.Context) error
- func (s *Action) TemplatePrint(ctx context.Context, c *cli.Context) error
- func (s *Action) TemplateRemove(ctx context.Context, c *cli.Context) error
- func (s *Action) TemplatesComplete(*cli.Context)
- func (s *Action) TemplatesPrint(ctx context.Context, c *cli.Context) error
- func (s *Action) Unclip(ctx context.Context, c *cli.Context) error
- func (s *Action) Update(ctx context.Context, c *cli.Context) error
- func (s *Action) Version(ctx context.Context, 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 )
const (
// BinarySuffix is the suffix that is appended to binaries in the store
BinarySuffix = ".b64"
)
Variables ¶
This section is empty.
Functions ¶
func IsPasswordOnly ¶ added in v1.6.1
IsPasswordOnly returns the value of password only or the default (false)
func WithClip ¶ added in v1.6.1
WithClip returns a context with the value for clip (for copy to clipboard) set
func WithPasswordOnly ¶ added in v1.6.1
WithPasswordOnly returns a context with the value of password only set
Types ¶
type Action ¶
Action knows everything to run gopass CLI actions
func (*Action) AskForConfirmation ¶ added in v1.4.0
AskForConfirmation asks a yes/no question until the user replies yes or no
func (*Action) AskForKeyImport ¶ added in v1.4.0
AskForKeyImport asks for permissions to import the named key
func (*Action) BinaryCopy ¶ added in v1.2.0
BinaryCopy copies either from the filesystem to the store or from the store to the filesystem
func (*Action) BinaryMove ¶ added in v1.2.0
BinaryMove works like BinaryCopy 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) BinarySum ¶ added in v1.2.0
BinarySum decodes binary content and computes the SHA256 checksum
func (*Action) CompletionBash ¶
CompletionBash returns a bash script used for auto completion
func (*Action) CompletionZSH ¶
CompletionZSH returns a script that uses bash's auto completion
func (*Action) ConfigComplete ¶ added in v1.4.0
ConfigComplete will print the list of valid config keys
func (*Action) ConfirmRecipients ¶ added in v1.4.0
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) HIBP ¶ added in v1.3.0
HIBP compares all entries from the store against the provided SHA1 sum dumps
func (*Action) InitOnboarding ¶ added in v1.5.0
InitOnboarding will invoke the onboarding / setup wizard
func (*Action) Initialized ¶
Initialized returns an error if the store is not properly prepared.
func (*Action) JSONAPI ¶ added in v1.4.0
JSONAPI reads a json message on stdin and responds on stdout
func (*Action) MountRemove ¶
MountRemove removes an existing mount
func (*Action) MountsComplete ¶
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 ¶
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) SetupNativeMessaging ¶ added in v1.4.0
SetupNativeMessaging sets up manifest for gopass as native messaging host
func (*Action) TemplateEdit ¶ added in v1.1.0
TemplateEdit will load and existing or new template into an editor
func (*Action) TemplatePrint ¶ added in v1.1.0
TemplatePrint will lookup and print a single template
func (*Action) TemplateRemove ¶ added in v1.1.0
TemplateRemove will remove a single template
func (*Action) TemplatesComplete ¶ added in v1.1.0
TemplatesComplete prints a list of all templates for bash completion
func (*Action) TemplatesPrint ¶ added in v1.1.0
TemplatesPrint will pretty-print a tree of templates
Source Files ¶
- action.go
- audit.go
- binary.go
- clihelper.go
- clihelper_others.go
- clipboard.go
- clipboard_others.go
- clone.go
- completion.go
- config.go
- context.go
- copy.go
- create.go
- delete.go
- edit.go
- edit_linux.go
- errors.go
- find.go
- fix.go
- fsck.go
- generate.go
- git.go
- grep.go
- hibp.go
- init.go
- insert.go
- jsonapi.go
- list.go
- mount.go
- move.go
- otp.go
- recipients.go
- show.go
- sync.go
- templates.go
- unclip.go
- unclip_linux.go
- update.go
- update_others.go
- version.go