store

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrExistsFailed is returend if we can't check for existence.
	ErrExistsFailed = fmt.Errorf("failed to check for existence")
	// ErrNotFound is returned if an entry was not found.
	ErrNotFound = fmt.Errorf("entry is not in the password store")
	// ErrEncrypt is returned if we failed to encrypt an entry.
	ErrEncrypt = fmt.Errorf("failed to encrypt")
	// ErrDecrypt is returned if we failed to decrypt and entry.
	ErrDecrypt = fmt.Errorf("failed to decrypt")
	// ErrIO is any kind of I/O error.
	ErrIO = fmt.Errorf("i/o error")
	// ErrGitInit is returned if git is already initialized.
	ErrGitInit = fmt.Errorf("git is already initialized")
	// ErrGitNotInit is returned if git is not initialized.
	ErrGitNotInit = fmt.Errorf("git is not initialized")
	// ErrGitNoRemote is returned if git has no origin remote.
	ErrGitNoRemote = fmt.Errorf("git has no remote origin")
	// ErrGitNothingToCommit is returned if there are no staged changes.
	ErrGitNothingToCommit = fmt.Errorf("git has nothing to commit")
	// ErrEmptySecret is returned if a secret exists but has no content.
	ErrEmptySecret = fmt.Errorf("empty secret. see https://go.gopass.pw/faq#empty-secret")
	// ErrMeaninglessWrite is returned if a secret is overwritten with its current (ciphertext) content.
	ErrMeaninglessWrite = fmt.Errorf("meaningless write")
	// ErrNoBody is returned if a secret exists but has no content beyond a password.
	ErrNoBody = fmt.Errorf("no safe content to display, you can force display with -f")
	// ErrNoPassword is returned is a secret exists but has no password, only a body.
	ErrNoPassword = fmt.Errorf("no password to display, check the body of the entry instead")
	// ErrYAMLNoMark is returned if a secret contains no valid YAML document marker.
	ErrYAMLNoMark = fmt.Errorf("no YAML document marker found")
	// ErrNoKey is returned if a KV or YAML entry doesn't contain a key.
	ErrNoKey = fmt.Errorf("key not found in entry")
	// ErrYAMLValueUnsupported is returned is the user tries to unmarshal an nested struct.
	ErrYAMLValueUnsupported = fmt.Errorf("can not unmarshal nested YAML value")
)

Functions

This section is empty.

Types

type ByLen

type ByLen []string

ByLen is a list of mount points (string) that can be sorted by length.

func (ByLen) Len

func (s ByLen) Len() int

Len return the number of mount points in the list.

func (ByLen) Less

func (s ByLen) Less(i, j int) bool

Less returns if a Mount point is shorter than another.

func (ByLen) Swap

func (s ByLen) Swap(i, j int)

Swap Mount Point in the list of Mount Points.

type ByPathLen

type ByPathLen []string

ByPathLen sorts mount points by the number of level / path separators.

func (ByPathLen) Len

func (s ByPathLen) Len() int

func (ByPathLen) Less

func (s ByPathLen) Less(i, j int) bool

func (ByPathLen) Swap

func (s ByPathLen) Swap(i, j int)

type FsckCallback

type FsckCallback func(context.Context, string) bool

FsckCallback is a callback to ask the user to confirm certain fsck corrective actions.

type ImportCallback

type ImportCallback func(context.Context, string, []string) bool

ImportCallback is a callback to ask the user if they want to import a certain recipients public key into their keystore.

type RecipientCallback

type RecipientCallback func(context.Context, string, []string) ([]string, error)

RecipientCallback is a callback to verify the list of recipients.

Directories

Path Synopsis
inmem
Package inmem implements an in memory storage backend for tests.
Package inmem implements an in memory storage backend for tests.

Jump to

Keyboard shortcuts

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