errorcode

package
v0.0.0-...-f0aa59e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

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