keyerr

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fmt

func Fmt(format string, a ...interface{}) error

Fmt is the equivalent of fmt.Errorf creating a new Error type from the formatting directives.

func New

func New(errs string) error

New is the equivalent of errors.New creating a new Error type with the given message

Types

type Error

type Error string
const (
	KeyNotFound         Error = "key with specified signature not found"
	KeyExpired          Error = "key with specified signature has expired"
	KeyNotMatched       Error = "key for specified common name not found"
	KeyOverwrite        Error = "cannot overwrite key"
	KeysNotComparable   Error = "cannot compare keys using marshaled data"
	KeyStoreUnavailable Error = "key store is unavialable, cannot store keys"
	NoDefaultKeys       Error = "key not found, no default key available"
	NoCachePrivateKeys  Error = "cannot cache private keys in external store"
	NoStorePublicKeys   Error = "private key required for internal store"
	InvalidSource       Error = "key chain is not correctly configured"
)

func (Error) Error

func (e Error) Error() string

Error implements the error interface.

Jump to

Keyboard shortcuts

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