Documentation
¶
Overview ¶
Package errorcode implements standard errors for the module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptError ¶
type DecryptError int
DecryptError are all known errors from the decrypt error.
const ( // Unknown is not known by the decrypt error. Unknown DecryptError = iota // Exist happens when the content already exist. // // Has to be returned by store.SaveKey() when the key already exists. Exist // NotExist happens when the content does not exist. // // Has to be returned by store.LoadKey() when key is unknown. NotExist // Invalid happens when the given data is invalid // // Has to be returned by store.ValidateHash if the hash is invalid. Invalid )
func (DecryptError) Error ¶
func (err DecryptError) Error() string
Click to show internal directories.
Click to hide internal directories.