File: errors.go

package info (click to toggle)
golang-github-smallstep-crypto 0.57.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,284 kB
  • sloc: sh: 53; makefile: 36
file content (15 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package storage

import "errors"

// TODO: provide key/ak name in the error?

// ErrNotFound is returned when a Key or AK cannot be found in storage
var ErrNotFound = errors.New("not found")

// ErrExists is returned when a Key or AK already exists in storage
var ErrExists = errors.New("already exists")

// ErrNoStorageConfigured is returned when a TPM operation is
// performed that requires a storage to have been configured
var ErrNoStorageConfigured = errors.New("no storage configured")