-
Notifications
You must be signed in to change notification settings - Fork 3
/
errors.go
30 lines (22 loc) · 1.1 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2017 Josh Komoroske. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE.txt file.
package ykman
import (
"errors"
)
var (
// ErrorYkmanNotFound indicates that the ykman executable could not be found
// Installation or $PATH configuration may be needed to correct
ErrorYkmanNotFound = errors.New("ykman executable not found")
// ErrorYkmanInterrupted indicates that the ykman process was killed with a signal
ErrorYkmanInterrupted = errors.New("ykman interrupted")
// ErrorYubikeyNotDetected indicates that a YubiKey is not currently plugged in
ErrorYubikeyNotDetected = errors.New("yubikey not detected")
// ErrorYubikeyRemoved indicates that a YubiKey was removed while in-use
ErrorYubikeyRemoved = errors.New("yubikey removed")
// ErrorYubikeyTimeout indicates that a YubiKey was not touched in time to generate an OATH code
ErrorYubikeyTimeout = errors.New("yubikey timed out")
// ErrorSlotNameUnknown indicates that the specified OATH slot name does not exist
ErrorSlotNameUnknown = errors.New("slot name unknown")
)