-
Notifications
You must be signed in to change notification settings - Fork 842
/
codes.go
33 lines (32 loc) · 1.42 KB
/
codes.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
31
32
33
// Package codes the exit statuses returned by the sops binary
package codes
// Exit statuses returned by the binary
const (
ErrorGeneric int = 1
CouldNotReadInputFile int = 2
CouldNotWriteOutputFile int = 3
ErrorDumpingTree int = 4
ErrorReadingConfig int = 5
ErrorInvalidKMSEncryptionContextFormat int = 6
ErrorInvalidSetFormat int = 7
ErrorConflictingParameters int = 8
ErrorEncryptingMac int = 21
ErrorEncryptingTree int = 23
ErrorDecryptingMac int = 24
ErrorDecryptingTree int = 25
CannotChangeKeysFromNonExistentFile int = 49
MacMismatch int = 51
MacNotFound int = 52
ConfigFileNotFound int = 61
KeyboardInterrupt int = 85
InvalidTreePathFormat int = 91
NeedAtLeastOneDocument int = 92
NoFileSpecified int = 100
CouldNotRetrieveKey int = 128
NoEncryptionKeyFound int = 111
DuplicateDecryptionKeyType int = 112
FileHasNotBeenModified int = 200
NoEditorFound int = 201
FailedToCompareVersions int = 202
FileAlreadyEncrypted int = 203
)