Documentation ¶
Index ¶
Constants ¶
const DefaultTokenLength = 6
DefaultTokenLength defines what is the default length of the generated token. Most services are using 6 characters.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendError ¶
type BackendError struct {
Message string
}
BackendError is an error to tell the user something went wrong processing the backend storage.
func (BackendError) Error ¶
func (e BackendError) Error() string
type Namespace ¶
Namespace represents a Namespace "category".
func (*Namespace) DeleteAccount ¶
DeleteAccount removes a specific Account from the Namespace.
type NotFoundError ¶
NotFoundError is an error to tell the user the requested entity is not there.
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type Storage ¶
Storage structure represents the credential storage.
func PrepareStorage ¶
PrepareStorage loads, decrypt and parse the Storage. If the storage file does not exist it creates one.
func (*Storage) DecryptV1 ¶ added in v1.3.0
DecryptV1 tries to decrypt the original unsecure SHA1 storage.
func (*Storage) DeleteNamespace ¶
DeleteNamespace removes a specific namespace from the Storage.
func (*Storage) FindNamespace ¶
FindNamespace returns with a namespace if the namespace does not exist error is not nil.