Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CliHandler ¶
func CliHandler(ctx *cli.Context, err error)
Types ¶
type Code ¶
type Code string
const ( CodeCmd Code = "0" CodeCmdCommon Code = "00" CodeCmdCommonBefore Code = "000" CodeCmdCommonSetupBind Code = "001" CodeCmdCommonSetupSyslogHook Code = "002" CodeCmdCommonSetupBindAddress Code = "003" CodeCmdCommonSetupBindNetwork Code = "004" CodeCmdFlags Code = "01" CodeCmdInit Code = "02" CodeCmdServer Code = "03" CodeCmdServerEnvSetup Code = "030" CodeCmdServerEnvSetupPhysical Code = "0300" CodeCmdServerEnvSetupLogical Code = "0301" CodeCmdServerExecute Code = "031" CodeCmdServerDevMode Code = "032" CodeCmdServerDevModeSetup Code = "0320" CodeCmdServerDevModeTokenCreate Code = "0321" CodeCmdUnseal Code = "04" CodeApiGrpc Code = "10" CodeApiGrpcCreateKey Code = "100" CodeApiGrpcReadKey Code = "101" CodeApiGrpcDeleteKey Code = "102" CodeApiGrpcListKey Code = "103" CodeApiGrpcEncrypt Code = "104" CodeApiGrpcDecrypt Code = "105" CodeApiGrpcHash Code = "106" CodeApiGrpcHMAC Code = "107" CodeApiGrpcSign Code = "108" CodeApiGrpcVerifySign Code = "109" CodeApiGrpcRewarp Code = "10_10_" CodeApiGrpcUpdateKeyConfig Code = "10_11_" CodeApiGrpcRotateKey Code = "10_12_" CodeApiGrpcExportKey Code = "10_13_" CodeApiGrpcBackupKey Code = "10_14_" CodeApiGrpcRestoreKey Code = "10_15_" CodeApiGrpcGenerateKey Code = "10_16_" CodeApiGrpcGenerateRandomBytes Code = "10_17_" CodeApiHTTP Code = "11" CodeApiHTTPBind Code = "110" CodeApiHTTPBindRead Code = "1100" CodeApiHTTPBindUnmarshal Code = "1101" CodeApiHTTPSuccessResponse Code = "111" CodeApiHTTPSuccessResponseMarshal Code = "1110" CodeApiHTTPSuccessResponseWrite Code = "1111" CodeApiHTTPCreateKey Code = "112" CodeApiHTTPCreateKeyEngineName Code = "1120" CodeApiHTTPReadKey Code = "113" CodeApiHTTPReadKeyEngineName Code = "1130" CodeApiHTTPDeleteKey Code = "114" CodeApiHTTPDeleteKeyEngineName Code = "1140" CodeApiHTTPListKeys Code = "115" CodeApiHTTPListKeysEngineName Code = "1150" CodeApiHTTPEncrypt Code = "116" CodeApiHTTPEncryptEngineName Code = "1160" CodeApiHTTPDecrypt Code = "117" CodeApiHTTPDecryptEngineName Code = "1170" CodeApiHTTPHash Code = "118" CodeApiHTTPHmac Code = "119" CodeApiHTTPHmacEngineName Code = "1190" CodeApiHTTPSign Code = "11_10_" CodeApiHTTPSignEngineName Code = "11_10_0" CodeApiHTTPVerifySign Code = "11_11_" CodeApiHTTPVerifySignEngineName Code = "11_11_0" CodeApiHTTPRewrapKey Code = "11_12_" CodeApiHTTPRewrapKeyEngineName Code = "11_12_0" CodeApiHTTPUpdateKeyConfig Code = "11_13_" CodeApiHTTPUpdateKeyConfigEngineName Code = "11_13_0" CodeApiHTTPUpdateKeyConfigReadKey Code = "11_13_1" CodeApiHTTPRotateKey Code = "11_14_" CodeApiHTTPRotateKeyEngineName Code = "11_14_0" CodeApiHTTPRotateKeyReadKey Code = "11_14_1" CodeApiHTTPExportKey Code = "11_15_" CodeApiHTTPExportKeyEngineName Code = "11_15_0" CodeApiHTTPExportKeyReadKeyType Code = "11_15_1" CodeApiHTTPExportKeyReadKeyName Code = "11_15_2" CodeApiHTTPBackupKey Code = "11_16_" CodeApiHTTPBackupKeyEngineName Code = "11_16_0" CodeApiHTTPBackupKeyReadKeyName Code = "11_16_1" CodeApiHTTPRestoreKey Code = "11_17_" CodeApiHTTPRestoreKeyEngineName Code = "11_17_0" CodeApiHTTPRestoreKeyReadKeyName Code = "11_17_1" CodeApiHTTPGenerateKey Code = "11_18_" CodeApiHTTPGenerateKeyEngineName Code = "11_18_0" CodeApiHTTPGenerateKeyReadKeyType Code = "11_18_1" CodeApiHTTPGenerateKeyReadKeyName Code = "11_18_2" CodeApiHTTPGenerateRandomBytes Code = "11_19_" CodeApiHTTPGenerateRandomBytesEngineName Code = "11_19_0" CodeApiHTTPGenerateRandomBytesBytesCountMissing Code = "11_19_1" CodeApiHTTPGenerateRandomBytesBytesCountFormat Code = "11_19_2" CodeApiSocket Code = "12" CodeApiSocketBind Code = "120" CodeApiSocketBindRead Code = "1200" CodeApiSocketBindUnmarshal Code = "1201" CodeApiSocketBindUnknown Code = "1202" CodeApiSocketWrite Code = "121" CodeApiSocketHandler Code = "122" CodeApiSocketInit Code = "123" CodeApiSocketInitUnmarshal Code = "1230" CodeApiSocketInitMarshal Code = "1231" CodeApiSocketUnseal Code = "124" CodeApiSocketUnsealKeyring Code = "1241" CodeApiSocketUnsealMount Code = "1242" CodeApiSocketUnsealPostProcess Code = "1243" CodeApiSocketToken Code = "125" CodeApiSocketTokenHandler Code = "1250" CodeApiSocketTokenHandlerSealed Code = "12500" CodeApiSocketTokenHandlerUnmarshal Code = "12501" CodeApiSocketTokenHandlerMarshal Code = "12502" CodeClient Code = "2" CodeClientGrpc Code = "20" CodeClientGrpcDial Code = "200" CodeClientGrpcTLSError Code = "201" CodeClientGrpcCreateKey Code = "202" CodeClientGrpcReadKey Code = "203" CodeClientGrpcDeleteKey Code = "204" CodeClientGrpcListKey Code = "205" CodeClientGrpcEncrypt Code = "206" CodeClientGrpcDecrypt Code = "207" CodeClientGrpcHash Code = "208" CodeClientGrpcHmac Code = "209" CodeClientGrpcSign Code = "209" CodeClientGrpcVerifySign Code = "20_10_" CodeClientGrpcRewrap Code = "20_11_" CodeClientGrpcUpdateKeyConfig Code = "20_12_" CodeClientGrpcRotateKey Code = "20_13_" CodeClientGrpcExportKey Code = "20_14_" CodeClientGrpcBackupKey Code = "20_15_" CodeClientGrpcRestoreKey Code = "20_16_" CodeClientGrpcGenerateKey Code = "20_17_" CodeClientGrpcGenerateRandomBytes Code = "20_18_" CodeClientHttp Code = "21" CodeClientHttpSetup Code = "210" CodeClientHttpSetupCreateClient Code = "2100" CodeClientHttpSetupCloneClient Code = "2101" CodeClientHttpCreateKey Code = "211" CodeClientHttpReadKey Code = "212" CodeClientHttpDeleteKey Code = "213" CodeClientHttpListKey Code = "214" CodeClientHttpEncrypt Code = "215" CodeClientHttpDecrypt Code = "216" CodeClientHttpHash Code = "217" CodeClientHttpHmac Code = "218" CodeClientHttpSign Code = "219" CodeClientHttpVerifySign Code = "21_10_" CodeClientHttpHealth Code = "21_11_" CodeClientHttpHealthVaultRequest Code = "21_11_0" CodeClientHttpHealthRead Code = "21_11_1" CodeClientHttpHealthUnmarshal Code = "21_11_2" CodeClientHttpRewrap Code = "21_12_" CodeClientHttpUpdateKeyConfig Code = "21_13_" CodeClientHttpRotateKey Code = "21_14_" CodeClientHttpExport Code = "21_15_" CodeClientHttpBackup Code = "21_16_" CodeClientHttpRestore Code = "21_17_" CodeClientHttpGenerate Code = "21_18_" CodeClientHttpGenerateRandomBytes Code = "21_19_" CodeClientDev Code = "22" CodeClientDevSetup Code = "220" CodeClientDevSetupBarrierPhysical Code = "2201" CodeClientDevSetupBarrierLogical Code = "2202" CodeClientDevCreateKey Code = "221" CodeClientDevReadKey Code = "222" CodeClientDevDeleteKey Code = "223" CodeClientDevListKeys Code = "224" CodeClientDevEncrypt Code = "225" CodeClientDevDecrypt Code = "226" CodeClientDevHash Code = "227" CodeClientDevHmac Code = "228" CodeClientDevSign Code = "229" CodeClientDevVerifySign Code = "22_10_" CodeClientDevRewrap Code = "22_11_" CodeClientDevUpdateKeyConfig Code = "22_12_" CodeClientDevRotate Code = "22_13_" CodeClientDevExport Code = "22_14_" CodeClientDevBackup Code = "22_15_" CodeClientDevRestore Code = "22_16_" CodeClientDevGenerateKey Code = "22_17_" CodeClientDevGenerateRandomBytes Code = "22_18_" CodePkgCrypto Code = "3" CodePkgCryptoKeyring Code = "30" CodePkgCryptoKeyringAeadForTerm Code = "301" CodePkgCryptoKeyringAeadForTermMissingTerm Code = "3010" CodePkgCryptoKeyringAeadForTermFromKey Code = "3011" CodePkgCryptoKeyringInitGetError Code = "302" CodePkgCryptoKeyringInitNotFound Code = "303" CodePkgCryptoKeyringInitTermMisMatch Code = "304" CodePkgCryptoKeyringAeadFromKey Code = "305" CodePkgCryptoKeyringAeadFromKeyCipherCreate Code = "3050" CodePkgCryptoKeyringAeadFromKeyGCMCreate Code = "3051" CodePkgCryptoKeyringBarrierDecrypt Code = "306" CodePkgCryptoKeyringDeserialize Code = "307" CodePkgCryptoMount Code = "31" CodePkgCryptoMountNotFound Code = "310" CodePkgCryptoMountTermMisMatch Code = "311" CodePkgCryptoMountAeadFromKey Code = "312" CodePkgCryptoMountBarrierDecrypt Code = "313" CodePkgCryptoMountDecodeTable Code = "314" CodePkgCryptoMountDecodeTableJsonDecode Code = "3140" CodePkgCryptoTransit Code = "32" CodePkgCryptoTransitCreateKey Code = "320" CodePkgCryptoTransitGetKey Code = "321" CodePkgCryptoTransitGetKeyNotFound Code = "3210" CodePkgCryptoTransitListKeys Code = "322" CodePkgCryptoTransitDeleteKey Code = "323" CodePkgCryptoTransitEncrypt Code = "324" CodePkgCryptoTransitEncryptGetKey Code = "3240" CodePkgCryptoTransitEncryptPolicyNotFound Code = "3241" CodePkgCryptoTransitEncryptPlainTextFormat Code = "3242" CodePkgCryptoTransitEncryptContextFormat Code = "3243" CodePkgCryptoTransitEncryptNonceFormat Code = "3244" CodePkgCryptoTransitEncryptResultFormat Code = "3245" CodePkgCryptoTransitDecrypt Code = "325" CodePkgCryptoTransitDecryptGetKey Code = "3250" CodePkgCryptoTransitDecryptPolicyNotFound Code = "3251" CodePkgCryptoTransitDecryptCiphertextFormat Code = "3252" CodePkgCryptoTransitDecryptDecodeContextFormat Code = "3253" CodePkgCryptoTransitDecryptNonceFormat Code = "3254" CodePkgCryptoTransitHash Code = "326" CodePkgCryptoTransitHashInputFormat Code = "3260" CodePkgCryptoTransitHashOutputFormat Code = "3261" CodePkgCryptoTransitHashAlgorithmFormat Code = "3262" CodePkgCryptoTransitHMAC Code = "327" CodePkgCryptoTransitHMACGetKey Code = "3271" CodePkgCryptoTransitHMACKeyVersion Code = "3272" CodePkgCryptoTransitHMACCompute Code = "3273" CodePkgCryptoTransitHMACUnsupportedAlgo Code = "3274" CodePkgCryptoTransitHMACInputFormat Code = "3275" CodePkgCryptoTransitSign Code = "328" CodePkgCryptoTransitSignGetKey Code = "3280" CodePkgCryptoTransitSignKeyNotFound Code = "3281" CodePkgCryptoTransitSignKeyHashType Code = "3282" CodePkgCryptoTransitSignUnsupported Code = "3283" CodePkgCryptoTransitSignInputFormat Code = "3284" CodePkgCryptoTransitSignContextFormat Code = "3285" CodePkgCryptoTransitVerifySign Code = "329" CodePkgCryptoTransitVerifySignGetKey Code = "3290" CodePkgCryptoTransitVerifySignKeyNotFound Code = "3291" CodePkgCryptoTransitVerifySignKeyHashType Code = "3292" CodePkgCryptoTransitVerifySignUnsupported Code = "3293" CodePkgCryptoTransitVerifySignInputFormat Code = "3294" CodePkgCryptoTransitVerifySignContextFormat Code = "3295" CodePkgCryptoTransitGetHashType Code = "32_10_" CodePkgCryptoTransitUpdateKeyConfig Code = "32_11_" CodePkgCryptoTransitUpdateKeyConfigGetKey Code = "32_11_0" CodePkgCryptoTransitUpdateKeyConfigMinDecryptVersionNegative Code = "32_11_1" CodePkgCryptoTransitUpdateKeyConfigMinDecryptVersionLatest Code = "32_11_2" CodePkgCryptoTransitUpdateKeyConfigMinEncryptVersionNegative Code = "32_11_3" CodePkgCryptoTransitUpdateKeyConfigMinEncryptVersionLatest Code = "32_11_4" CodePkgCryptoTransitUpdateKeyConfigMinEncryptMinDecrypt Code = "32_11_5" CodePkgCryptoTransitUpdateKeyConfigMinEncryptMinAvailable Code = "32_11_6" CodePkgCryptoTransitUpdateKeyConfigMinDecryptMinAvailable Code = "32_11_7" CodePkgCryptoTransitUpdateKeyConfigPersist Code = "32_11_8" CodePkgCryptoTransitRewrap Code = "32_12_" CodePkgCryptoTransitRewrapGetKey Code = "32_12_0" CodePkgCryptoTransitRewrapPolicyNotFound Code = "32_12_1" CodePkgCryptoTransitRewrapPlainTextFormat Code = "32_12_2" CodePkgCryptoTransitRewrapContextFormat Code = "32_12_3" CodePkgCryptoTransitRewrapNonceFormat Code = "32_12_4" CodePkgCryptoTransitRewrapDecrypt Code = "32_12_5" CodePkgCryptoTransitRewrapEncrypt Code = "32_12_6" CodePkgCryptoTransitRewrapResultFormat Code = "32_12_7" CodePkgCryptoTransitRotate Code = "32_13_" CodePkgCryptoTransitRotateGetKey Code = "32_13_0" CodePkgCryptoTransitRotateRotate Code = "32_13_1" CodePkgCryptoTransitExport Code = "32_14_" CodePkgCryptoTransitExportType Code = "32_14_0" CodePkgCryptoTransitExportGetKey Code = "32_14_1" CodePkgCryptoTransitExportNonExportable Code = "32_14_2" CodePkgCryptoTransitExportTypeEncryptKeyNotSupported Code = "32_14_3" CodePkgCryptoTransitExportTypeSigningKeyNotSupported Code = "32_14_4" CodePkgCryptoTransitExportGetExportKey Code = "32_14_5" CodePkgCryptoTransitExportGetExportKeyPolicyMissing Code = "32_14_50" CodePkgCryptoTransitExportGetExportKeyToPrivateKey Code = "32_14_51" CodePkgCryptoTransitExportGetExportKeyToPrivateKeyMissingEntry Code = "32_14_510" CodePkgCryptoTransitExportGetExportKeyToPrivateKeyMarshal Code = "32_14_511" CodePkgCryptoTransitExportGetExportKeyToPrivateKeyMarshalResult Code = "32_14_512" CodePkgCryptoTransitExportGetExportKeyUnknownType Code = "32_14_52" CodePkgCryptoTransitExportInvalidVersionFormat Code = "32_14_6" CodePkgCryptoTransitExportInvalidVersionLessThanMin Code = "32_14_7" CodePkgCryptoTransitExportVersionNotFound Code = "32_14_8" CodePkgCryptoTransitBackup Code = "32_15_" CodePkgCryptoTransitBackupPolicy Code = "32_15_0" CodePkgCryptoTransitRestore Code = "32_16_" CodePkgCryptoTransitRestoreMissingBackupParam Code = "32_16_0" CodePkgCryptoTransitRestoreInvalidKeyName Code = "32_16_1" CodePkgCryptoTransitRestorePolicy Code = "32_16_2" CodePkgCryptoTransitGenerate Code = "32_17_" CodePkgCryptoTransitGenerateInvalidPlainText Code = "32_17_0" CodePkgCryptoTransitGenerateInvalidContext Code = "32_17_1" CodePkgCryptoTransitGenerateInvalidNonce Code = "32_17_2" CodePkgCryptoTransitGenerateGetKey Code = "32_17_3" CodePkgCryptoTransitGenerateInvalidBits Code = "32_17_4" CodePkgCryptoTransitGenerateRandRead Code = "32_17_5" CodePkgCryptoTransitGenerateEncrypt Code = "32_17_6" CodePkgCryptoTransitGenerateCiphertext Code = "32_17_7" CodePkgCryptoTransitGenerateRandomBytes Code = "32_18_" CodePkgCryptoTransitGenerateRandomBytesUrlBytes Code = "32_18_0" CodePkgCryptoTransitGenerateRandomBytesParse Code = "32_18_1" CodePkgCryptoTransitGenerateRandomBytesMax Code = "32_18_2" CodePkgCryptoTransitGenerateRandomBytesFormat Code = "32_18_3" CodePkgCryptoTransitGenerateRandomBytesRandomGenerate Code = "32_18_4" CodePkgCryptoUnseal Code = "33" CodePkgCryptoUnsealSealed Code = "330" CodePkgCryptoUnsealUnseal Code = "331" CodePkgCryptoUnsealUnsealGetKey Code = "3310" CodePkgCryptoUnsealUnsealShamirCombine Code = "3311" CodePkgCryptoUnsealUnsealAESGCM Code = "3312" CodePkgCryptoUnsealUnsealProtoUnmarshal Code = "3313" CodePkgCryptoUnsealUnsealUnmarshal Code = "3314" CodePkgCryptoUnsealKeyFormat Code = "332" CodePkgCryptoUnsealMissingMasterKey Code = "333" CodePkgCryptoUnsealKeyring Code = "334" CodePkgCryptoUnsealKeyringMissing Code = "335" CodePkgCryptoUnsealMount Code = "336" CodePkgCryptoUnsealStatus Code = "337" CodePkgCryptoUnsealDevMode Code = "338" CodePkgCryptoUnsealDevModeRead Code = "3380" CodePkgCryptoUnsealDevModePostProcess Code = "3381" CodePkgCryptoUnsealPostProcess Code = "339" CodePkgCryptoUnsealPostProcessSBInitialize Code = "3390" CodePkgCryptoUnsealPostProcessSBUnseal Code = "3391" CodePkgCryptoUtils Code = "34" CodePkgCryptoUtilsBarrierDecrypt Code = "340" CodePkgInit Code = "4" CodePkgInitInitialize Code = "40" CodePkgInitInitializeSealInit Code = "400" CodePkgInitInitializeSBInit Code = "403" CodePkgInitInitializeSBUnseal Code = "404" CodePkgInitInitializeSBSeal Code = "405" CodePkgInitInitializeSealBarrierConfig Code = "406" CodePkgInitInitializeSealAESGCM Code = "407" CodePkgInitInitializeSealStoredKeys Code = "408" CodePkgInitGetRootToken Code = "41" CodePkgInitPersistMounts Code = "42" CodePkgSeal Code = "5" CodePkgSealStoredKeys Code = "50" CodePkgSealStoredKeysInputFormat Code = "500" CodePkgSealStoredKeysJsonMarshal Code = "501" CodePkgSealStoredKeysEncrypt Code = "502" CodePkgSealStoredKeysProtoMarshal Code = "503" CodePkgSealStoredKeysPut Code = "504" SealBarrierConfig Code = "51" SealBarrierConfigJsonMarshal Code = "510" SealBarrierConfigPut Code = "511" CodePkgStorage Code = "6" CodePkgStorageInMemory Code = "61" CodePkgStorageConsul Code = "62" CodeInternal Code = "7" // TODO )
Click to show internal directories.
Click to hide internal directories.