| 1 |
// This file was autogenerated by genconsts.py |
| 2 |
|
| 3 |
// LINSTOR - management of distributed storage/DRBD9 resources |
| 4 |
// Copyright (C) 2017 - 2026 LINBIT HA-Solutions GmbH |
| 5 |
// All Rights Reserved. |
| 6 |
// Author: Robert Altnoeder, Roland Kammerer, Gabor Hernadi, Rene Peinthor |
| 7 |
// |
| 8 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 9 |
// not use this file except in compliance with the License. You may obtain |
| 10 |
// a copy of the License at |
| 11 |
// |
| 12 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 13 |
// |
| 14 |
// Unless required by applicable law or agreed to in writing, software |
| 15 |
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 16 |
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 17 |
// License for the specific language governing permissions and limitations |
| 18 |
// under the License. |
| 19 |
|
| 20 |
package linstor |
| 21 |
|
| 22 |
// ## Bits 62 - 63 (most significant 2) are reserved for the message type masks (error, warning, info) |
| 23 |
// Bits 25 - 26 are reserved for the operation type masks (create, modify, delete) |
| 24 |
// Bits 18 - 22 are reserved for the object type masks (node, resource, resource definition, ...) |
| 25 |
// Bits 0 - 14 are reserved for codes ### |
| 26 |
const MaskBitsType = 0xC000000000000000 |
| 27 |
const MaskError = 0xC000000000000000 |
| 28 |
const MaskWarn = 0x8000000000000000 |
| 29 |
const MaskInfo = 0x4000000000000000 |
| 30 |
const MaskSuccess = 0x0000000000000000 |
| 31 |
|
| 32 |
// ## Operation type masks ### |
| 33 |
const MaskBitsOp = 0x0000000003000000 |
| 34 |
const MaskCrt = 0x0000000001000000 |
| 35 |
const MaskMod = 0x0000000002000000 |
| 36 |
const MaskDel = 0x0000000003000000 |
| 37 |
|
| 38 |
// ## Type masks (Node, ResDfn, Res, VolDfn, Vol, NetInterface, ...) ### |
| 39 |
const MaskBitsObj = 0x00000000007C0000 |
| 40 |
const MaskSchedule = 0x0000000000540000 |
| 41 |
const MaskExtFiles = 0x0000000000500000 |
| 42 |
const MaskPhysicalDevice = 0x00000000004C0000 |
| 43 |
const MaskVlmGrp = 0x0000000000480000 |
| 44 |
const MaskRscGrp = 0x0000000000440000 |
| 45 |
const MaskKvs = 0x0000000000400000 |
| 46 |
const MaskNode = 0x00000000003C0000 |
| 47 |
const MaskRscDfn = 0x0000000000380000 |
| 48 |
const MaskRsc = 0x0000000000340000 |
| 49 |
const MaskVlmDfn = 0x0000000000300000 |
| 50 |
const MaskVlm = 0x00000000002C0000 |
| 51 |
const MaskNodeConn = 0x0000000000280000 |
| 52 |
const MaskRscConn = 0x0000000000240000 |
| 53 |
const MaskVlmConn = 0x0000000000200000 |
| 54 |
const MaskNetIf = 0x00000000001C0000 |
| 55 |
const MaskStorPoolDfn = 0x0000000000180000 |
| 56 |
const MaskStorPool = 0x0000000000140000 |
| 57 |
const MaskCtrlConf = 0x0000000000100000 |
| 58 |
const MaskSnapshot = 0x00000000000C0000 |
| 59 |
const MaskBackup = 0x0000000000080000 |
| 60 |
const MaskRemote = 0x0000000000040000 |
| 61 |
|
| 62 |
// ## Codes ### |
| 63 |
const MaskBitsCode = 0x0000000000007FFF |
| 64 |
|
| 65 |
// ## Codes 1-9: success ### |
| 66 |
const Created = (1 | MaskSuccess) |
| 67 |
const Deleted = (2 | MaskSuccess) |
| 68 |
const Modified = (3 | MaskSuccess) |
| 69 |
const PassphraseAccepted = (4 | MaskSuccess) |
| 70 |
|
| 71 |
// ## Codes 100 - 999: failures ### |
| 72 |
|
| 73 |
// ## Codes 100 - 199: sql failures ### |
| 74 |
const FailSql = (100 | MaskError) |
| 75 |
const FailSqlRollback = (101 | MaskError) |
| 76 |
|
| 77 |
// ## Codes 200-299: invalid * failures ### |
| 78 |
const FailInvldNodeName = (200 | MaskError) |
| 79 |
const FailInvldNodeType = (201 | MaskError) |
| 80 |
const FailInvldRscName = (202 | MaskError) |
| 81 |
const FailInvldRscPort = (203 | MaskError) |
| 82 |
const FailInvldNodeId = (204 | MaskError) |
| 83 |
const FailInvldVlmNr = (205 | MaskError) |
| 84 |
const FailInvldVlmSize = (206 | MaskError) |
| 85 |
const FailInvldMinorNr = (207 | MaskError) |
| 86 |
const FailInvldStorPoolName = (208 | MaskError) |
| 87 |
const FailInvldNetName = (209 | MaskError) |
| 88 |
const FailInvldNetAddr = (210 | MaskError) |
| 89 |
const FailInvldNetPort = (211 | MaskError) |
| 90 |
const FailInvldNetType = (212 | MaskError) |
| 91 |
const FailInvldProp = (213 | MaskError) |
| 92 |
const FailInvldTransportType = (214 | MaskError) |
| 93 |
const FailInvldTcpPort = (215 | MaskError) |
| 94 |
const FailInvldCryptPassphrase = (216 | MaskError) |
| 95 |
const FailInvldEncryptType = (217 | MaskError) |
| 96 |
const FailInvldSnapshotName = (218 | MaskError) |
| 97 |
const FailInvldPlaceCount = (219 | MaskError) |
| 98 |
const FailInvldFreeSpaceMgrName = (220 | MaskError) |
| 99 |
const FailInvldStorDriver = (221 | MaskError) |
| 100 |
const FailInvldDrbdProxyCompressionType = (222 | MaskError) |
| 101 |
const FailInvldKvsName = (223 | MaskError) |
| 102 |
const FailInvldLayerKind = (224 | MaskError) |
| 103 |
const FailInvldLayerStack = (225 | MaskError) |
| 104 |
const FailInvldExtName = (226 | MaskError) |
| 105 |
const FailInvldProvider = (227 | MaskError) |
| 106 |
const FailInvldVlmSizes = (228 | MaskError) |
| 107 |
const FailInvldVlmCount = (229 | MaskError) |
| 108 |
const FailInvldConf = (230 | MaskError) |
| 109 |
const FailInvldSnapshotShippingSource = (231 | MaskError) |
| 110 |
const FailInvldSnapshotShippingTarget = (232 | MaskError) |
| 111 |
const FailNodeHasUsedRsc = (233 | MaskError) |
| 112 |
const FailInvldRequest = (234 | MaskError) |
| 113 |
const FailInvldExtFileName = (235 | MaskError) |
| 114 |
const FailInvldExtFile = (236 | MaskError) |
| 115 |
const FailInvldRscGrpName = (237 | MaskError) |
| 116 |
const FailInvldBackupConfig = (238 | MaskError) |
| 117 |
const FailInvldRemoteName = (239 | MaskError) |
| 118 |
const FailInvldTimeParam = (240 | MaskError) |
| 119 |
const FailInvldScheduleName = (241 | MaskError) |
| 120 |
const FailInvldDbExportFile = (242 | MaskError) |
| 121 |
const FailInvldRscState = (243 | MaskError) |
| 122 |
const FailInvldBlkSize = (244 | MaskError) |
| 123 |
|
| 124 |
// ## Codes 300-399: dependency not found failures ### |
| 125 |
const FailNotFoundNode = (300 | MaskError) |
| 126 |
const FailNotFoundRscDfn = (301 | MaskError) |
| 127 |
const FailNotFoundRsc = (302 | MaskError) |
| 128 |
const FailNotFoundVlmDfn = (303 | MaskError) |
| 129 |
const FailNotFoundVlm = (304 | MaskError) |
| 130 |
const FailNotFoundNetIf = (305 | MaskError) |
| 131 |
const FailNotFoundNodeConn = (306 | MaskError) |
| 132 |
const FailNotFoundRscConn = (307 | MaskError) |
| 133 |
const FailNotFoundVlmConn = (308 | MaskError) |
| 134 |
const FailNotFoundStorPoolDfn = (309 | MaskError) |
| 135 |
const FailNotFoundStorPool = (310 | MaskError) |
| 136 |
const FailNotFoundDfltStorPool = (311 | MaskError) |
| 137 |
const FailNotFoundCryptKey = (312 | MaskError) |
| 138 |
const FailNotFoundSnapshotDfn = (313 | MaskError) |
| 139 |
const FailNotFoundSnapshotVlmDfn = (314 | MaskError) |
| 140 |
const FailNotFoundSnapshot = (315 | MaskError) |
| 141 |
const FailNotFoundKvs = (316 | MaskError) |
| 142 |
const FailNotFoundRscGrp = (317 | MaskError) |
| 143 |
const FailNotFoundVlmGrp = (318 | MaskError) |
| 144 |
const FailNotFoundExosEnclosure = (319 | MaskError) |
| 145 |
const FailNotFoundExtFile = (320 | MaskError) |
| 146 |
const FailNotFoundRemote = (321 | MaskError) |
| 147 |
const FailNotFoundBackup = (322 | MaskError) |
| 148 |
const FailNotFoundSchedule = (323 | MaskError) |
| 149 |
|
| 150 |
// ## Codes 400-499: access denied failures ### |
| 151 |
const FailAccDeniedNode = (400 | MaskError) |
| 152 |
const FailAccDeniedRscDfn = (401 | MaskError) |
| 153 |
const FailAccDeniedRsc = (402 | MaskError) |
| 154 |
const FailAccDeniedVlmDfn = (403 | MaskError) |
| 155 |
const FailAccDeniedVlm = (404 | MaskError) |
| 156 |
const FailAccDeniedStorPoolDfn = (405 | MaskError) |
| 157 |
const FailAccDeniedStorPool = (406 | MaskError) |
| 158 |
const FailAccDeniedNodeConn = (407 | MaskError) |
| 159 |
const FailAccDeniedRscConn = (408 | MaskError) |
| 160 |
const FailAccDeniedVlmConn = (409 | MaskError) |
| 161 |
const FailAccDeniedStltConn = (410 | MaskError) |
| 162 |
const FailAccDeniedCtrlCfg = (411 | MaskError) |
| 163 |
const FailAccDeniedCommand = (412 | MaskError) |
| 164 |
const FailAccDeniedWatch = (413 | MaskError) |
| 165 |
const FailAccDeniedSnapshotDfn = (414 | MaskError) |
| 166 |
const FailAccDeniedSnapshot = (415 | MaskError) |
| 167 |
const FailAccDeniedSnapshotVlmDfn = (416 | MaskError) |
| 168 |
const FailAccDeniedFreeSpaceMgr = (417 | MaskError) |
| 169 |
const FailAccDeniedKvs = (418 | MaskError) |
| 170 |
const FailAccDeniedRscGrp = (419 | MaskError) |
| 171 |
const FailAccDeniedVlmGrp = (420 | MaskError) |
| 172 |
const FailAccDeniedSnapDfn = (421 | MaskError) |
| 173 |
const FailAccDeniedExtFile = (422 | MaskError) |
| 174 |
const FailAccDeniedRemote = (423 | MaskError) |
| 175 |
const FailAccDeniedSchedule = (424 | MaskError) |
| 176 |
|
| 177 |
// ## Codes 500-599: data already exists failures ### |
| 178 |
const FailExistsNode = (500 | MaskError) |
| 179 |
const FailExistsRscDfn = (501 | MaskError) |
| 180 |
const FailExistsRsc = (502 | MaskError) |
| 181 |
const FailExistsVlmDfn = (503 | MaskError) |
| 182 |
const FailExistsVlm = (504 | MaskError) |
| 183 |
const FailExistsNetIf = (505 | MaskError) |
| 184 |
const FailExistsNodeConn = (506 | MaskError) |
| 185 |
const FailExistsRscConn = (507 | MaskError) |
| 186 |
const FailExistsVlmConn = (508 | MaskError) |
| 187 |
const FailExistsStorPoolDfn = (509 | MaskError) |
| 188 |
const FailExistsStorPool = (510 | MaskError) |
| 189 |
const FailExistsStltConn = (511 | MaskError) |
| 190 |
const FailExistsCryptPassphrase = (512 | MaskError) |
| 191 |
const FailExistsWatch = (513 | MaskError) |
| 192 |
const FailExistsSnapshotDfn = (514 | MaskError) |
| 193 |
const FailExistsSnapshot = (516 | MaskError) |
| 194 |
const FailExistsExtName = (517 | MaskError) |
| 195 |
const FailExistsNvmeTargetPerRscDfn = (518 | MaskError) |
| 196 |
const FailExistsNvmeInitiatorPerRscDfn = (519 | MaskError) |
| 197 |
const FailLostStorPool = (521 | MaskError) |
| 198 |
const FailExistsRscGrp = (522 | MaskError) |
| 199 |
const FailExistsVlmGrp = (523 | MaskError) |
| 200 |
const FailExistsSnapshotShipping = (525 | MaskError) |
| 201 |
const FailExistsExosEnclosure = (526 | MaskError) |
| 202 |
const FailExistsRemote = (527 | MaskError) |
| 203 |
const FailExistsSchedule = (528 | MaskError) |
| 204 |
|
| 205 |
// ## Codes 600-699: data missing failures ### |
| 206 |
const FailMissingProps = (600 | MaskError) |
| 207 |
const FailMissingPropsNetcomType = (601 | MaskError) |
| 208 |
const FailMissingPropsNetcomPort = (602 | MaskError) |
| 209 |
const FailMissingNetcom = (603 | MaskError) |
| 210 |
const FailMissingPropsNetifName = (604 | MaskError) |
| 211 |
const FailMissingStltConn = (605 | MaskError) |
| 212 |
const FailMissingExtName = (606 | MaskError) |
| 213 |
const FailMissingNvmeTarget = (608 | MaskError) |
| 214 |
const FailNoStltConnDefined = (609 | MaskError) |
| 215 |
const FailMissingEbsTarget = (611 | MaskError) |
| 216 |
|
| 217 |
// ## Codes 700-799: uuid mismatch failures ### |
| 218 |
const FailUuidNode = (700 | MaskError) |
| 219 |
const FailUuidRscDfn = (701 | MaskError) |
| 220 |
const FailUuidRsc = (702 | MaskError) |
| 221 |
const FailUuidVlmDfn = (703 | MaskError) |
| 222 |
const FailUuidVlm = (704 | MaskError) |
| 223 |
const FailUuidNetIf = (705 | MaskError) |
| 224 |
const FailUuidNodeConn = (706 | MaskError) |
| 225 |
const FailUuidRscConn = (707 | MaskError) |
| 226 |
const FailUuidVlmConn = (708 | MaskError) |
| 227 |
const FailUuidStorPoolDfn = (709 | MaskError) |
| 228 |
const FailUuidStorPool = (710 | MaskError) |
| 229 |
const FailUuidKvs = (711 | MaskError) |
| 230 |
|
| 231 |
// ## Codes 800-899: number pools exhausted ### |
| 232 |
const FailPoolExhaustedVlmNr = (800 | MaskError) |
| 233 |
const FailPoolExhaustedMinorNr = (801 | MaskError) |
| 234 |
const FailPoolExhaustedTcpPort = (802 | MaskError) |
| 235 |
const FailPoolExhaustedNodeId = (803 | MaskError) |
| 236 |
const FailPoolExhaustedRscLayerId = (804 | MaskError) |
| 237 |
const FailPoolExhaustedSpecialSatellteTcpPort = (805 | MaskError) |
| 238 |
const FailPoolExhaustedSnapshotShippingTcpPort = (806 | MaskError) |
| 239 |
const FailPoolExhaustedBackupShippingTcpPort = (807 | MaskError) |
| 240 |
|
| 241 |
// ## Other failures ### |
| 242 |
const FailNotFoundLiveMigrateSource = (900 | MaskError) |
| 243 |
const FailExistsLiveMigrate = (901 | MaskError) |
| 244 |
const FailPortBlockedDrbdAdjust = (970 | MaskError) |
| 245 |
const FailSnapshotRollbackInProgress = (971 | MaskError) |
| 246 |
const FailSpMixingNotAllowed = (972 | MaskError) |
| 247 |
const FailEbsCooldown = (973 | MaskError) |
| 248 |
const FailNotAllUptodate = (974 | MaskError) |
| 249 |
const FailEvacuating = (975 | MaskError) |
| 250 |
const FailBackupUnknownCluster = (976 | MaskError) |
| 251 |
const FailDependendBackup = (977 | MaskError) |
| 252 |
const FailBackupIncompatibleVersion = (978 | MaskError) |
| 253 |
const FailSnapshotNotUptodate = (979 | MaskError) |
| 254 |
const FailNotEnoughFreeSpace = (980 | MaskError) |
| 255 |
const FailOnlyOneActRscPerSharedStorPoolAllowed = (981 | MaskError) |
| 256 |
const FailCryptInit = (982 | MaskError) |
| 257 |
const FailSnapshotShippingNotSupported = (983 | MaskError) |
| 258 |
const FailSnapshotShippingInProgress = (984 | MaskError) |
| 259 |
const FailUndecidableAutoplacment = (985 | MaskError) |
| 260 |
const FailPreSelectScriptDidNotTerminate = (986 | MaskError) |
| 261 |
const FailLinstorManagedSatelliteDidNotStartProperly = (987 | MaskError) |
| 262 |
const FailStltDoesNotSupportLayer = (988 | MaskError) |
| 263 |
const FailStltDoesNotSupportProvider = (989 | MaskError) |
| 264 |
const FailStorPoolConfigurationError = (990 | MaskError) |
| 265 |
const FailInsufficientReplicaCount = (991 | MaskError) |
| 266 |
const FailRscBusy = (992 | MaskError) |
| 267 |
const FailInsufficientPeerSlots = (993 | MaskError) |
| 268 |
const FailSnapshotsNotSupported = (994 | MaskError) |
| 269 |
const FailNotConnected = (995 | MaskError) |
| 270 |
const FailNotEnoughNodes = (996 | MaskError) |
| 271 |
const FailInUse = (997 | MaskError) |
| 272 |
const FailUnknownError = (998 | MaskError) |
| 273 |
const FailImplError = (999 | MaskError) |
| 274 |
|
| 275 |
// ## Codes 1000-9999: warnings ### |
| 276 |
const WarnInvldOptPropNetcomEnabled = (1001 | MaskWarn) |
| 277 |
const WarnNotConnected = (1002 | MaskWarn) |
| 278 |
const WarnStltNotUpdated = (1003 | MaskWarn) |
| 279 |
const WarnNoStltConnDefined = (1004 | MaskWarn) |
| 280 |
const WarnDelUnsetProp = (1005 | MaskWarn) |
| 281 |
const WarnRscAlreadyDeployed = (1006 | MaskWarn) |
| 282 |
const WarnRscAlreadyHasDisk = (1007 | MaskWarn) |
| 283 |
const WarnRscAlreadyDiskless = (1008 | MaskWarn) |
| 284 |
const WarnAllDiskless = (1009 | MaskWarn) |
| 285 |
const WarnStorageError = (1010 | MaskWarn) |
| 286 |
const WarnNotFoundCryptKey = (1011 | MaskWarn) |
| 287 |
const WarnStorageKindAdded = (1012 | MaskWarn) |
| 288 |
const WarnNotEnoughNodesForTieBreaker = (1013 | MaskWarn) |
| 289 |
const WarnMixedPmemAndNonPmem = (1014 | MaskWarn) |
| 290 |
const WarnUneffectiveProp = (1015 | MaskWarn) |
| 291 |
const WarnInvldSnapshotShippingPrefix = (1016 | MaskWarn) |
| 292 |
const WarnNodeEvicted = (1017 | MaskWarn) |
| 293 |
const WarnRscDeactivated = (1018 | MaskWarn) |
| 294 |
const WarnBackupDlOnly = (1019 | MaskWarn) |
| 295 |
const WarnNotEvacuating = (1020 | MaskWarn) |
| 296 |
const WarnInvldConf = (1021 | MaskWarn) |
| 297 |
const WarnStorpoolRenameNotAllowed = (1022 | MaskWarn) |
| 298 |
const WarnVlmdfnResizeSameSize = (1023 | MaskWarn) |
| 299 |
const WarnCorruptCryptKey = (1024 | MaskWarn) |
| 300 |
const WarnTieBreakerRuleRelaxed = (1025 | MaskWarn) |
| 301 |
const WarnNotFound = (3000 | MaskWarn) |
| 302 |
const WarnNoEffect = (3001 | MaskWarn) |
| 303 |
const WarnDeprecated = (4000 | MaskWarn) |
| 304 |
|
| 305 |
// ## Codes 10000-19999: info ### |
| 306 |
const InfoNoRscSpawned = (10000 | MaskInfo) |
| 307 |
const InfoNodeNameMismatch = (10001 | MaskInfo) |
| 308 |
const InfoPropSet = (10002 | MaskInfo) |
| 309 |
const InfoTieBreakerCreated = (10003 | MaskInfo) |
| 310 |
const InfoTieBreakerDeleting = (10004 | MaskInfo) |
| 311 |
const InfoTieBreakerTakeover = (10006 | MaskInfo) |
| 312 |
const InfoPropRemoved = (10005 | MaskInfo) |
| 313 |
const InfoAutoDrbdProxyCreated = (10007 | MaskInfo) |
| 314 |
const InfoNoop = (10007 | MaskInfo) |
| 315 |
const InfoRscAlreadyExists = (10008 | MaskInfo) |
| 316 |
const InfoAbortedFailedSnapshotRollback = (10009 | MaskInfo) |
| 317 |
const InfoRecoveringFailedSnapshotRollback = (10010 | MaskInfo) |
| 318 |
|
| 319 |
// ## Special codes ### |
| 320 |
const UnknownApiCall = (0x0FFFFFFFFFFFFFFF | MaskError) |
| 321 |
const ApiCallAuthReq = (0x0FFFFFFFFFFFFFFE | MaskError) |
| 322 |
const ApiCallParseError = (0x0FFFFFFFFFFFFFFD | MaskError) |
| 323 |
|
| 324 |
// ## SignIn codes ### |
| 325 |
const FailSignIn = (10000 | MaskError) |
| 326 |
const FailSignInMissingCredentials = (10001 | MaskError) |
| 327 |
|
| 328 |
// ## Special answer message content types ### |
| 329 |
// Textual MsgApiCallResponse responses |
| 330 |
const ApiReply = "Reply" |
| 331 |
|
| 332 |
// Indicates that the immediate answers to the API call are complete |
| 333 |
const ApiEndOfImmediateAnswers = "EndOfImmediateAnswers" |
| 334 |
|
| 335 |
// ## Create object APIs ### |
| 336 |
const ApiCrtNode = "CrtNode" |
| 337 |
const ApiCrtRsc = "CrtRsc" |
| 338 |
const ApiCrtRscDfn = "CrtRscDfn" |
| 339 |
const ApiCrtNetIf = "CrtNetIf" |
| 340 |
const ApiCrtVlmDfn = "CrtVlmDfn" |
| 341 |
const ApiCrtSnapshot = "CrtSnapshot" |
| 342 |
const ApiCrtSnapshotMulti = "CrtSnapshotMulti" |
| 343 |
const ApiCrtBackup = "CrtBackup" |
| 344 |
const ApiCrtStorPoolDfn = "CrtStorPoolDfn" |
| 345 |
const ApiCrtStorPool = "CrtStorPool" |
| 346 |
const ApiCrtNodeConn = "CrtNodeConn" |
| 347 |
const ApiCrtRscConn = "CrtRscConn" |
| 348 |
const ApiCrtVlmConn = "CrtVlmConn" |
| 349 |
const ApiAutoPlaceRsc = "AutoPlaceRsc" |
| 350 |
const ApiCloneRscdfn = "CloneRscDfn" |
| 351 |
const ApiCloneRscdfnStatus = "CloneRscDfnStatus" |
| 352 |
const ApiCrtCryptPass = "CrtCryptPass" |
| 353 |
const ApiStatusCryptPass = "StatusCryptPass" |
| 354 |
const ApiRestoreVlmDfn = "RestoreVlmDfn" |
| 355 |
const ApiRestoreSnapshot = "RestoreSnapshot" |
| 356 |
const ApiCrtRscGrp = "CrtRscGrp" |
| 357 |
const ApiCrtVlmGrp = "CrtVlmGrp" |
| 358 |
const ApiSpawnRscDfn = "SpawnRscDfn" |
| 359 |
const ApiAdjustRscGrp = "AdjustRscGrp" |
| 360 |
const ApiCreateDevicePool = "CreateDevicePool" |
| 361 |
const ApiMakeRscAvail = "MakeRscAvail" |
| 362 |
const ApiUnmakeRscAvail = "UnmakeRscAvail" |
| 363 |
const ApiSetRemote = "SetRemote" |
| 364 |
const ApiRestoreBackup = "RstBackup" |
| 365 |
const ApiAbortBackup = "AbortBackup" |
| 366 |
const ApiShipBackup = "ShipBackup" |
| 367 |
const ApiCrtSchedule = "CrtSchedule" |
| 368 |
const ApiCtrlCrtAuthToken = "CtrlCrtAuthToken" |
| 369 |
const ApiCtrlListAuthToken = "CtrlListAuthToken" |
| 370 |
const ApiCtrlModifyAuthToken = "CtrlModifyAuthToken" |
| 371 |
const ApiCtrlDeleteAuthToken = "CtrlDeleteAuthToken" |
| 372 |
const ApiCtrlInitAuthToken = "CtrlInitAuthToken" |
| 373 |
|
| 374 |
// ## Modify object APIs ### |
| 375 |
const ApiModNode = "ModNode" |
| 376 |
const ApiModNodeConn = "ModNodeConn" |
| 377 |
const ApiModRsc = "ModRsc" |
| 378 |
const ApiToggleDisk = "ToggleDisk" |
| 379 |
const ApiModRscConn = "ModRscConn" |
| 380 |
const ApiModRscDfn = "ModRscDfn" |
| 381 |
const ApiModNetIf = "ModNetIf" |
| 382 |
const ApiModStorPool = "ModStorPool" |
| 383 |
const ApiModStorPoolDfn = "ModStorPoolDfn" |
| 384 |
const ApiModVlmDfn = "ModVlmDfn" |
| 385 |
const ApiModVlmDfnPass = "ModVlmDfnPassphrase" |
| 386 |
const ApiModVlm = "ModVlm" |
| 387 |
const ApiModVlmConn = "ModVlmConn" |
| 388 |
const ApiModSnapshot = "ModSnapshot" |
| 389 |
const ApiModCryptPass = "ModCryptPass" |
| 390 |
const ApiEnableDrbdProxy = "EnableDrbdProxy" |
| 391 |
const ApiDisableDrbdProxy = "DisableDrbdProxy" |
| 392 |
const ApiModDrbdProxy = "ModifyDrbdProxy" |
| 393 |
const ApiRollbackSnapshot = "RollbackSnapshot" |
| 394 |
const ApiModKvs = "ModifyKvs" |
| 395 |
const ApiModRscGrp = "ModifyRscGrp" |
| 396 |
const ApiModVlmGrp = "ModifyVlmGrp" |
| 397 |
const ApiActivateRsc = "ActivateRsc" |
| 398 |
const ApiDeactivateRsc = "DeactivateRsc" |
| 399 |
const ApiModSchedule = "ModSchedule" |
| 400 |
|
| 401 |
// ## Delete object APIs ### |
| 402 |
const ApiDelNode = "DelNode" |
| 403 |
const ApiDelRsc = "DelRsc" |
| 404 |
const ApiDelRscDfn = "DelRscDfn" |
| 405 |
const ApiTruncateRscDfn = "TruncateRscDfn" |
| 406 |
const ApiDelNetIf = "DelNetIf" |
| 407 |
const ApiDelVlmDfn = "DelVlmDfn" |
| 408 |
const ApiDelStorPoolDfn = "DelStorPoolDfn" |
| 409 |
const ApiDelStorPool = "DelStorPool" |
| 410 |
const ApiDelNodeConn = "DelNodeConn" |
| 411 |
const ApiDelRscConn = "DelRscConn" |
| 412 |
const ApiDelVlmConn = "DelVlmConn" |
| 413 |
const ApiDelSnapshot = "DelSnapshot" |
| 414 |
const ApiDelKvs = "DelKvs" |
| 415 |
const ApiDelRscGrp = "DelRscGrp" |
| 416 |
const ApiDelVlmGrp = "DelVlmGrp" |
| 417 |
const ApiDelBackup = "DelBackup" |
| 418 |
const ApiLostNode = "LostNode" |
| 419 |
const ApiLostStorPool = "LostStorPool" |
| 420 |
const ApiDelSchedule = "DelSchedule" |
| 421 |
|
| 422 |
// ## Authentication APIs ### |
| 423 |
const ApiVersion = "Version" |
| 424 |
|
| 425 |
// ## Debug APIs ### |
| 426 |
const ApiCrtDbgCnsl = "CrtDbgCnsl" |
| 427 |
const ApiDstrDbgCnsl = "DstrDbgCnsl" |
| 428 |
|
| 429 |
// ## Command APIs ### |
| 430 |
const ApiControlCtrl = "ControlCtrl" |
| 431 |
const ApiCmdShutdown = "Shutdown" |
| 432 |
const ApiNodeReconnect = "NodeReconnect" |
| 433 |
const ApiNodeRestore = "NodeRestore" |
| 434 |
const ApiNodeEvict = "NodeEvict" |
| 435 |
const ApiNodeEvacuate = "NodeEvacuate" |
| 436 |
|
| 437 |
// ## List object APIs ### |
| 438 |
const ApiLstNode = "LstNode" |
| 439 |
const ApiLstNodeConn = "LstNodeConn" |
| 440 |
const ApiLstRsc = "LstRsc" |
| 441 |
const ApiLstRscDfn = "LstRscDfn" |
| 442 |
const ApiLstNetIf = "LstNetIf" |
| 443 |
const ApiLstVlmDfn = "LstVlmDfn" |
| 444 |
const ApiLstVlm = "LstVlm" |
| 445 |
const ApiLstSnapshotDfn = "LstSnapshotDfn" |
| 446 |
const ApiLstStorPool = "LstStorPool" |
| 447 |
const ApiLstStorPoolDfn = "LstStorPoolDfn" |
| 448 |
const ApiLstErrorReports = "LstErrorReports" |
| 449 |
const ApiReqErrorReports = "ReqErrorReports" |
| 450 |
const ApiDelErrorReport = "DelErrorReport" |
| 451 |
const ApiDelErrorReports = "DelErrorReports" |
| 452 |
const ApiReqSosReport = "ReqSosReport" |
| 453 |
const ApiReqRscConnList = "ReqRscConnList" |
| 454 |
const ApiLstRscConn = "LstRscConn" |
| 455 |
const ApiLstKvs = "LstKvs" |
| 456 |
const ApiLstRscGrp = "LstRscGrp" |
| 457 |
const ApiLstVlmGrp = "LstVlmGrp" |
| 458 |
const ApiLstPhysStor = "LstPhysicalStorage" |
| 459 |
const ApiLstBackups = "LstBackups" |
| 460 |
const ApiBackupInfo = "BackupInfo" |
| 461 |
const ApiLstPropsInfo = "LstPropsInfo" |
| 462 |
const ApiLstRemote = "LstRemote" |
| 463 |
const ApiLstExtFiles = "LstExtFiles" |
| 464 |
const ApiNodeStats = "NodeStats" |
| 465 |
const ApiRscGrpStats = "RscGrpStats" |
| 466 |
const ApiRscDfnStats = "RscDfnStats" |
| 467 |
const ApiRscStats = "RscStats" |
| 468 |
const ApiStorPoolStats = "StorPoolStats" |
| 469 |
const ApiErrReportStats = "ErrReportStats" |
| 470 |
const ApiLstSchedule = "LstSchedule" |
| 471 |
const ApiLstQueue = "LstQueue" |
| 472 |
|
| 473 |
// ## Query APIs ### |
| 474 |
const ApiQryMaxVlmSize = "QryMaxVlmSize" |
| 475 |
const ApiRspMaxVlmSize = "RspMaxVlmSize" |
| 476 |
const ApiQrySizeInfo = "QrySizeInfo" |
| 477 |
const ApiQryAllSizeInfo = "QryAllSizeInfo" |
| 478 |
const ApiRscdfnSyncStatus = "RscDfnSyncStatus" |
| 479 |
const ApiCheckExtFile = "CheckExtFile" |
| 480 |
|
| 481 |
// ## Event APIs ### |
| 482 |
const ApiCrtWatch = "CrtWatch" |
| 483 |
const ApiDelWatch = "DelWatch" |
| 484 |
const ApiEvent = "Event" |
| 485 |
const ApiRptSpc = "RptSpc" |
| 486 |
const ApiPing = "Ping" |
| 487 |
const ApiPong = "Pong" |
| 488 |
const ApiModInf = "ModInf" |
| 489 |
const ApiVsnInf = "VsnInf" |
| 490 |
const ApiSetCtrlProp = "SetCtrlProp" |
| 491 |
const ApiDelCtrlProp = "DelCtrlProp" |
| 492 |
const ApiLstCtrlProps = "LstCtrlProps" |
| 493 |
|
| 494 |
// ## Encryption APIs ### |
| 495 |
const ApiEnterCryptPass = "EnterCryptPass" |
| 496 |
|
| 497 |
// ## External files APIs ### |
| 498 |
const ApiSetExtFile = "SetExtFile" |
| 499 |
const ApiDelExtFile = "DeleteExtFile" |
| 500 |
const ApiDeployExtFile = "DeployExtFile" |
| 501 |
const ApiUndeployExtFile = "UndeployExtFile" |
| 502 |
|
| 503 |
// ## Database APIs ### |
| 504 |
const ApiDbExport = "DbExport" |
| 505 |
|
| 506 |
// ## Controller props ### |
| 507 |
const KeyTokenAuthEnabled = "TokenAuthenticationEnabled" |
| 508 |
|
| 509 |
// ## DRBD property keys ### |
| 510 |
const KeyUuid = "UUID" |
| 511 |
const KeyDrbdCurrentGi = "DrbdCurrentGi" |
| 512 |
const KeyDmstats = "DMStats" |
| 513 |
const KeyQuorumSetBy = "QuorumSetBy" |
| 514 |
const KeyDrbdAutoQuorum = "auto-quorum" |
| 515 |
const KeyDrbdAutoBlockSize = "auto-block-size" |
| 516 |
const KeyDrbdFreezeBlockSize = "freeze-block-size" |
| 517 |
const KeyDrbdAutoAddQuorumTiebreaker = "auto-add-quorum-tiebreaker" |
| 518 |
const KeyMinorNrAutoRange = "MinorNrAutoRange" |
| 519 |
const KeyDrbdAutoDiskful = "auto-diskful" |
| 520 |
const KeyDrbdAutoDiskfulAllowCleanup = "auto-diskful-allow-cleanup" |
| 521 |
const KeyDrbdDisableAutoResyncAfter = "auto-resync-after-disable" |
| 522 |
const KeyDrbdDisableAutoVerifyAlgo = "auto-verify-algo-disable" |
| 523 |
const KeyDrbdAutoVerifyAlgoAllowedUser = "auto-verify-algo-allowed-user-list" |
| 524 |
const KeyDrbdAutoRsDiscardGranularity = "auto-rs-discard-granularity" |
| 525 |
const KeyDrbdAutoDiscardGranularity = "auto-discard-granularity" |
| 526 |
const KeyForceInitialSync = "ForceInitialSync" |
| 527 |
const KeyDrbdSkipDisk = "SkipDisk" |
| 528 |
const KeyDrbdExactSize = "ExactSize" |
| 529 |
const KeyLinstorDrbdInitialUptodateOn = "InitialUptoDateOn" |
| 530 |
|
| 531 |
// ## Node property keys ### |
| 532 |
const KeyNode = "Node" |
| 533 |
const Key1StNode = "FirstNode" |
| 534 |
const Key2NdNode = "SecondNode" |
| 535 |
const KeyCurStltConnName = "CurStltConnName" |
| 536 |
|
| 537 |
// ## Volume-definition property keys ### |
| 538 |
const KeyPassphrase = "Passphrase" |
| 539 |
|
| 540 |
// ## Resource property keys ### |
| 541 |
const KeyRscDfn = "RscDfn" |
| 542 |
const KeyRscGrp = "RscGrp" |
| 543 |
const KeyTcpPortAutoRange = "TcpPortAutoRange" |
| 544 |
const KeyTcpPortsBlocked = "TcpPortsBlocked" |
| 545 |
const KeyBlockedPortsList = "BlockedPortsList" |
| 546 |
const KeyPeerSlotsNewResource = "PeerSlotsNewResource" |
| 547 |
const KeyPeerSlots = "PeerSlots" |
| 548 |
const KeyBitmapBlockSizeNewResource = "BitmapBlockSizeNewResource" |
| 549 |
const KeyBitmapBlockSize = "BitmapBlockSize" |
| 550 |
const KeyRscRollbackTarget = "RollbackTarget" |
| 551 |
const KeyRscMigrateFrom = "MigrateFrom" |
| 552 |
const KeyRscAllowMixingDeviceKind = "AllowMixingStoragePoolDriver" |
| 553 |
const KeyRscDiskfulBy = "DiskfulBy" |
| 554 |
const KeyBalanceResourcesEnabled = "BalanceResourcesEnabled" |
| 555 |
const KeyBalanceResourcesInterval = "BalanceResourcesInterval" |
| 556 |
const KeyBalanceResourcesGracePeriod = "BalanceResourcesGracePeriod" |
| 557 |
const KeyBalanceResourcesSkipDiskLimit = "BalanceResourcesSkipDiskLimit" |
| 558 |
|
| 559 |
// ## Volume property keys ### |
| 560 |
const KeyVlmGrp = "VlmGrp" |
| 561 |
const KeyVlmNr = "VlmNr" |
| 562 |
const KeyVlmRestoreFromResource = "RestoreFromResource" |
| 563 |
const KeyVlmRestoreFromSnapshot = "RestoreFromSnapshot" |
| 564 |
|
| 565 |
// ## ldap property keys ### |
| 566 |
const KeySearchDomain = "SearchDomain" |
| 567 |
|
| 568 |
// ## nvme property keys ### |
| 569 |
const KeyTrType = "TRType" |
| 570 |
|
| 571 |
// ## Snapshot property keys ### |
| 572 |
const KeySnapshot = "Snapshot" |
| 573 |
const KeySnapshotDfnSequenceNumber = "SequenceNumber" |
| 574 |
|
| 575 |
// ## Network Interface property keys ### |
| 576 |
const KeyPort = "Port" |
| 577 |
const KeyDisableHttpMetrics = "disable-http-metrics" |
| 578 |
const KeyAutoHttps = "AutoHTTPS" |
| 579 |
|
| 580 |
// ## Writecache property keys ### |
| 581 |
const KeyWritecacheBlocksize = "Blocksize" |
| 582 |
const KeyWritecachePoolName = "PoolName" |
| 583 |
const KeyWritecacheSize = "Size" |
| 584 |
const KeyWritecacheOptionHighWatermark = "HighWatermark" |
| 585 |
const KeyWritecacheOptionLowWatermark = "LowWatermark" |
| 586 |
const KeyWritecacheOptionStartSector = "StartSector" |
| 587 |
const KeyWritecacheOptionWritebackJobs = "WritebackJobs" |
| 588 |
const KeyWritecacheOptionAutocommitBlocks = "AutocommitBlocks" |
| 589 |
const KeyWritecacheOptionAutocommitTime = "AutocommitTime" |
| 590 |
const KeyWritecacheOptionFua = "Fua" |
| 591 |
const KeyWritecacheOptionAdditional = "Additional" |
| 592 |
|
| 593 |
// ## Cache property keys ### |
| 594 |
const KeyCacheOperatingMode = "OpMode" |
| 595 |
const KeyCacheMetaPoolName = "MetaPool" |
| 596 |
const KeyCacheCachePoolName = "CachePool" |
| 597 |
const KeyCacheMetaSize = "Metasize" |
| 598 |
const KeyCacheCacheSize = "Cachesize" |
| 599 |
const KeyCacheBlockSize = "Blocksize" |
| 600 |
const KeyCachePolicy = "Policy" |
| 601 |
const KeyUpdateCacheInterval = "UpdateCacheInterval" |
| 602 |
const KeyCacheFlushTimeout = "FlushTimeout" |
| 603 |
|
| 604 |
// ## BCache property keys ### |
| 605 |
const KeyBcachePoolName = "PoolName" |
| 606 |
const KeyBcacheSize = "Size" |
| 607 |
const KeyBcacheBlocksize = "Blocksize" |
| 608 |
const KeyBcacheBucketsize = "Bucketsize" |
| 609 |
const KeyBcacheDataOffset = "DataOffset" |
| 610 |
const KeyBcacheWriteback = "Writeback" |
| 611 |
const KeyBcacheDiscard = "Discard" |
| 612 |
const KeyBcacheCacheReplacementPolicy = "CacheReplacementPolicy" |
| 613 |
|
| 614 |
// ## Autoplace property keys ### |
| 615 |
const KeyAutoplaceStratWeightMaxFreespace = "MaxFreeSpace" |
| 616 |
const KeyAutoplaceStratWeightMinReservedSpace = "MinReservedSpace" |
| 617 |
const KeyAutoplaceStratWeightMinRscCount = "MinRscCount" |
| 618 |
const KeyAutoplacePreSelectFileName = "PreSelectScript" |
| 619 |
const KeyAutoplacePreSelectScriptTimeout = "PreSelectScriptTimeout" |
| 620 |
const KeyAutoplaceMaxThroughput = "MaxThroughput" |
| 621 |
const KeySite = "Site" |
| 622 |
const KeyAutoplaceAllowTarget = "AutoplaceTarget" |
| 623 |
const KeyAutoplaceMinThinFreeSpace = "MinThinFreeSpace" |
| 624 |
|
| 625 |
// ## Auto-Evict property keys ### |
| 626 |
const KeyAutoEvictMinReplicaCount = "AutoEvictMinReplicaCount" |
| 627 |
const KeyAutoEvictAfterTime = "AutoEvictAfterTime" |
| 628 |
const KeyAutoEvictMaxDisconnectedNodes = "AutoEvictMaxDisconnectedNodes" |
| 629 |
const KeyAutoEvictAllowEviction = "AutoEvictAllowEviction" |
| 630 |
|
| 631 |
// ## Snapshot shipping property keys ### |
| 632 |
const KeyTargetNode = "TargetNode" |
| 633 |
const KeySourceNode = "SourceNode" |
| 634 |
const KeyRunEvery = "RunEvery" |
| 635 |
const KeyAutoSnapshotPrefix = "Prefix" |
| 636 |
const KeyKeep = "Keep" |
| 637 |
const KeyAutoSnapshotNextId = "NextAutoId" |
| 638 |
const KeyTcpPortRange = "TcpPortRange" |
| 639 |
|
| 640 |
// ## Backup shipping property keys ### |
| 641 |
const KeyBackupTimeout = "BackupTimeout" |
| 642 |
const KeyBackupS3Suffix = "S3KeySuffix" |
| 643 |
const KeyRemote = "Remote" |
| 644 |
const KeyMaxConcurrentBackupsPerNode = "MaxConcurrentBackupsPerNode" |
| 645 |
const ValNodeUndecided = "<undecided>" |
| 646 |
const KeyAllowForceRestore = "AllowForceRestore" |
| 647 |
const KeyRecvTimeoutInMs = "L2LReceiveStartedTimeout" |
| 648 |
const KeyBackupL2LSkipWaitForStart = "L2LSkipWaitForStart" |
| 649 |
const KeyCopyAllSnaps = "CopyAllSnaps" |
| 650 |
const KeyCopyAllSnapsOnEvac = "CopyAllSnapsOnEvacuate" |
| 651 |
|
| 652 |
// ## Clone property keys ### |
| 653 |
const KeyUseZfsClone = "UseZFSClone" |
| 654 |
const KeyCloneDdBlocksize = "DdBlocksize" |
| 655 |
const KeyBalanceAfterClone = "BalanceAfterClone" |
| 656 |
const KeyBalanceAfterRestore = "BalanceAfterRestore" |
| 657 |
|
| 658 |
// ## NetCom namespaces ### |
| 659 |
const KeyNetcomEnabled = "Enabled" |
| 660 |
const KeyNetcomBindAddress = "BindAddress" |
| 661 |
const KeyNetcomKeyPasswd = "KeyPasswd" |
| 662 |
const KeyNetcomKeyStore = "KeyStore" |
| 663 |
const KeyNetcomKeyStorePasswd = "KeyStorePasswd" |
| 664 |
const KeyNetcomPort = "Port" |
| 665 |
const KeyNetcomSslProtocol = "SslProtocol" |
| 666 |
const KeyNetcomTrustStore = "TrustStore" |
| 667 |
const KeyNetcomTrustStorePasswd = "TrustStorePasswd" |
| 668 |
const KeyNetcomType = "Type" |
| 669 |
|
| 670 |
// ## Database export constants ### |
| 671 |
const KeyAutoDbExportCron = "Cron" |
| 672 |
const KeyAutoDbExportKeep = "Keep" |
| 673 |
const KeyAutoDbExportPath = "Path" |
| 674 |
const KeyAutoDbExportCompress = "Compress" |
| 675 |
const ValAutoDbExportCronOff = "off" |
| 676 |
|
| 677 |
// ## Property namespaces ### |
| 678 |
const NamespcNetcom = "NetCom" |
| 679 |
const NamespcDflt = "Default" |
| 680 |
const NamespcLogging = "Logging" |
| 681 |
const NamespcAlloc = "Allocation" |
| 682 |
const NamespcNetif = "NetIf" |
| 683 |
const NamespcStlt = "Satellite" |
| 684 |
const NamespcNode = "Node" |
| 685 |
const NamespcStorageDriver = "StorDriver" |
| 686 |
const NamespcDrbdProxy = "DrbdProxy" |
| 687 |
const NamespcAuxiliary = "Aux" |
| 688 |
const NamespcLinstorDrbd = "Linstor/Drbd" |
| 689 |
const NamespcDrbdOptions = "DrbdOptions" |
| 690 |
const NamespcDrbdNetOptions = "DrbdOptions/Net" |
| 691 |
const NamespcDrbdDiskOptions = "DrbdOptions/Disk" |
| 692 |
const NamespcDrbdResourceOptions = "DrbdOptions/Resource" |
| 693 |
const NamespcDrbdPeerDeviceOptions = "DrbdOptions/PeerDevice" |
| 694 |
const NamespcDrbdProxyOptions = "DrbdOptions/Proxy" |
| 695 |
const NamespcDrbdProxyCompressionOptions = "DrbdOptions/ProxyCompression" |
| 696 |
const NamespcDrbdHandlerOptions = "DrbdOptions/Handlers" |
| 697 |
const NamespcConnectionPaths = "Paths" |
| 698 |
const NamespcInternalDrbd = "Internal/Drbd" |
| 699 |
const NamespcRest = "REST" |
| 700 |
const NamespcFilesystem = "FileSystem" |
| 701 |
const NamespcNvme = "NVMe" |
| 702 |
const NamespcLuks = "Luks" |
| 703 |
const NamespcSysFs = "sys/fs" |
| 704 |
const NamespcWritecache = "Writecache" |
| 705 |
const NamespcWritecacheOptions = "Writecache/Options" |
| 706 |
const NamespcCache = "Cache" |
| 707 |
const NamespcCacheFeatures = "Cache/Features" |
| 708 |
const NamespcCachePolicyArgs = "Cache/Policy" |
| 709 |
const NamespcBcache = "BCache" |
| 710 |
const NamespcAutoplacer = "Autoplacer" |
| 711 |
const NamespcAutoplacerWeights = "Autoplacer/Weights" |
| 712 |
const NamespcSnapshotShipping = "SnapshotShipping" |
| 713 |
const NamespcAutoSnapshot = "AutoSnapshot" |
| 714 |
const NamespcStltDevSymlinks = "Satellite/Device/Symlinks" |
| 715 |
const NamespcBackupShipping = "BackupShipping" |
| 716 |
const NamespcCluster = "Cluster" |
| 717 |
const NamespcClusterRemote = "Cluster/Remote" |
| 718 |
const NamespcSed = "SED" |
| 719 |
const NamespcEbs = "EBS" |
| 720 |
const NamespcTags = "Tags" |
| 721 |
const NamespcEncryption = "Encryption" |
| 722 |
const NamespcZfs = "Zfs" |
| 723 |
const NamespcExtCmd = "ExtCmd" |
| 724 |
const NamespcAuth = "Auth" |
| 725 |
const NamespcClone = "Clone" |
| 726 |
const NamespcSnapshot = "Snapshot" |
| 727 |
const NamespcAutoDbExport = "AutoDbExport" |
| 728 |
|
| 729 |
// ## Storage pool property keys ### |
| 730 |
const KeyStorPoolDfn = "StorPoolDfn" |
| 731 |
const KeyStorPoolName = "StorPoolName" |
| 732 |
const KeyStorPoolDrbdMetaName = "StorPoolNameDrbdMeta" |
| 733 |
const KeyStorPoolVolumeGroup = "LvmVg" |
| 734 |
const KeyStorPoolLvcreateType = "LvcreateType" |
| 735 |
const KeyStorPoolLvcreateOptions = "LvcreateOptions" |
| 736 |
const KeyStorPoolLvcreatePvSelection = "LvcreatePvSelection" |
| 737 |
const KeyStorPoolLvcreateSnapshotOptions = "LvcreateSnapshotOptions" |
| 738 |
const KeyStorPoolThinPool = "ThinPool" |
| 739 |
const KeyStorPoolLvmSizesCacheTime = "SizesCacheTime" |
| 740 |
const KeyStorPoolZpool = "ZPool" |
| 741 |
const KeyStorPoolZpoolthin = "ZPoolThin" |
| 742 |
const KeyStorPoolZfsCreateOptions = "ZfscreateOptions" |
| 743 |
const KeyStorPoolZfsSnapshotOptions = "ZfsSnapshotOptions" |
| 744 |
const KeyStorPoolFileDirectory = "FileDir" |
| 745 |
const KeyStorPoolPrefNic = "PrefNic" |
| 746 |
const KeyDrbdOutsideAddress = "OutsideAddress" |
| 747 |
const KeyStorPoolCryptPasswd = "CryptPasswd" |
| 748 |
const KeyStorPoolOverrideVlmId = "OverrideVlmId" |
| 749 |
const KeyStorPoolMaxOversubscriptionRatio = "MaxOversubscriptionRatio" |
| 750 |
const KeyStorPoolMaxFreeCapacityOversubscriptionRatio = "MaxFreeCapacityOversubscriptionRatio" |
| 751 |
const KeyStorPoolMaxTotalCapacityOversubscriptionRatio = "MaxTotalCapacityOversubscriptionRatio" |
| 752 |
const KeyStorPoolWaitTimeoutAfterCreate = "WaitTimeoutAfterCreate" |
| 753 |
const KeySpecStltPortAutoRange = "SpecStltPortAutoRange" |
| 754 |
const KeyStorPoolRemoteSpdkApiHost = "RemoteSpdk/ApiHost" |
| 755 |
const KeyStorPoolRemoteSpdkApiPort = "RemoteSpdk/ApiPort" |
| 756 |
const KeyStorPoolRemoteSpdkApiUserName = "RemoteSpdk/UserName" |
| 757 |
const KeyStorPoolRemoteSpdkApiUserPw = "RemoteSpdk/UserPassword" |
| 758 |
const KeyStorPoolRemoteSpdkApiUserNameEnv = "RemoteSpdk/UserNameEnv" |
| 759 |
const KeyStorPoolRemoteSpdkApiUserPwEnv = "RemoteSpdk/UserPasswordEnv" |
| 760 |
const KeyEbsVolumeType = "EBS/VolumeType" |
| 761 |
const KeyPrefNic = "PrefNic" |
| 762 |
const KeyZfsRollbackStrategy = "RollbackStrategy" |
| 763 |
const KeyZfsDeleteStrategy = "DeleteStrategy" |
| 764 |
|
| 765 |
// ## Storage pool traits keys ### |
| 766 |
const KeyStorPoolSupportsSnapshots = "SupportsSnapshots" |
| 767 |
const KeyStorPoolProvisioning = "Provisioning" |
| 768 |
|
| 769 |
// Unit of smallest allocation. The size in KiB as a decimal number. |
| 770 |
const KeyStorPoolAllocationUnit = "AllocationUnit" |
| 771 |
|
| 772 |
// ## Storage pool traits values ### |
| 773 |
const ValStorPoolProvisioningFat = "Fat" |
| 774 |
const ValStorPoolProvisioningThin = "Thin" |
| 775 |
const ValStorPoolDrbdMetaInternal = ".internal" |
| 776 |
const ValStorPoolSpaceNotFound = -1 |
| 777 |
const ValStorPoolSpaceEnough = 9223372036854775807 |
| 778 |
|
| 779 |
// ## Storage pool ZFS values ### |
| 780 |
const ValStorPoolZfsRollbackStratRollback = "Rollback" |
| 781 |
const ValStorPoolZfsRollbackStratClone = "Clone" |
| 782 |
const ValStorPoolZfsRollbackStratDynamic = "Dynamic" |
| 783 |
const ValStorPoolZfsDeleteStratDestroy = "Destroy" |
| 784 |
const ValStorPoolZfsDeleteStratRename = "Rename" |
| 785 |
const ValStorPoolZfsDeleteStratDynamic = "Dynamic" |
| 786 |
|
| 787 |
// ## Storage driver options ### |
| 788 |
const KeyStorDriverLuksFormatOptions = "LuksFormatOptions" |
| 789 |
const KeyStorDriverLuksOpenOptions = "LuksOpenOptions" |
| 790 |
|
| 791 |
// ## LUKS keys ### |
| 792 |
const KeyLuksAllowDiscards = "AllowDiscards" |
| 793 |
|
| 794 |
// ## DRBD Proxy keys (other than 'options') ### |
| 795 |
const KeyDrbdProxyCompressionType = "CompressionType" |
| 796 |
const KeyDrbdProxyAutoEnable = "AutoEnable" |
| 797 |
|
| 798 |
// ## File system property keys ### |
| 799 |
const KeyFsType = "Type" |
| 800 |
const KeyFsMkfsparameters = "MkfsParams" |
| 801 |
const KeyFsUser = "User" |
| 802 |
const KeyFsGroup = "Group" |
| 803 |
const ValFsTypeExt4 = "ext4" |
| 804 |
const ValFsTypeXfs = "xfs" |
| 805 |
|
| 806 |
// ## sys/fs property keys ### |
| 807 |
const KeySysFsBlkioThrottleRead = "blkio_throttle_read" |
| 808 |
const KeySysFsBlkioThrottleWrite = "blkio_throttle_write" |
| 809 |
const KeySysFsBlkioThrottleReadIops = "blkio_throttle_read_iops" |
| 810 |
const KeySysFsBlkioThrottleWriteIops = "blkio_throttle_write_iops" |
| 811 |
|
| 812 |
// ## Property values ### |
| 813 |
const ValNetcomTypeSsl = "SSL" |
| 814 |
const ValNetcomTypePlain = "Plain" |
| 815 |
const ValSslProtoTlsv1 = "TLSv1" |
| 816 |
|
| 817 |
// ## DRBD related property values ### |
| 818 |
const ValDrbdProxyCompressionNone = "none" |
| 819 |
const ValDrbdProxyCompressionZstd = "zstd" |
| 820 |
const ValDrbdProxyCompressionZlib = "zlib" |
| 821 |
const ValDrbdProxyCompressionLzma = "lzma" |
| 822 |
const ValDrbdProxyCompressionLz4 = "lz4" |
| 823 |
const ValDrbdAutoQuorumDisabled = "disabled" |
| 824 |
const ValDrbdAutoQuorumIoError = "io-error" |
| 825 |
const ValDrbdAutoQuorumSuspendIo = "suspend-io" |
| 826 |
|
| 827 |
// ## Node Type values ### |
| 828 |
const ValNodeTypeCtrl = "Controller" |
| 829 |
const ValNodeTypeStlt = "Satellite" |
| 830 |
const ValNodeTypeCmbd = "Combined" |
| 831 |
const ValNodeTypeAux = "Auxiliary" |
| 832 |
const ValNodeTypeRemoteSpdk = "Remote_Spdk" |
| 833 |
|
| 834 |
// ## Writecache option values ### |
| 835 |
const ValWritecacheFuaOn = "On" |
| 836 |
const ValWritecacheFuaOff = "Off" |
| 837 |
|
| 838 |
// ## Net interface Type values ### |
| 839 |
const ValNetifTypeIp = "IP" |
| 840 |
const ValNetifTypeRdma = "RDMA" |
| 841 |
const ValNetifTypeRoce = "RoCE" |
| 842 |
|
| 843 |
// ## Authentication keys ### |
| 844 |
const KeySecIdentity = "SecIdentity" |
| 845 |
const KeySecRole = "SecRole" |
| 846 |
const KeySecType = "SecType" |
| 847 |
const KeySecDomain = "SecDomain" |
| 848 |
const KeySecPassword = "SecPassword" |
| 849 |
const KeyPoolName = "PoolName" |
| 850 |
|
| 851 |
// ## Toggle disk operations ### |
| 852 |
const ValToggleDiskOpIntoDrbdDiskful = "INTO_DRBD_DISKFUL" |
| 853 |
const ValToggleDiskOpIntoDrbdDiskless = "INTO_DRBD_DISKLESS" |
| 854 |
const ValToggleDiskOpIntoDrbdClient = "INTO_DRBD_CLIENT" |
| 855 |
|
| 856 |
// ## External commands keys ### |
| 857 |
const KeyExtCmdWaitTo = "ExtCmdWaitTimeout" |
| 858 |
const KeyWaitTo = "WaitTimeout" |
| 859 |
const KeyTermTo = "TermTimeout" |
| 860 |
const KeyKillTo = "KillTimeout" |
| 861 |
const KeyIoStallTo = "IoStallTimeout" |
| 862 |
const KeyIoPollInterval = "IoPollInterval" |
| 863 |
|
| 864 |
// ## External files keys ### |
| 865 |
const KeyExtFile = "ExtFile" |
| 866 |
|
| 867 |
// ## Logging keys ### |
| 868 |
const KeyLogArchiveAgeDays = "ArchiveAgeDays" |
| 869 |
|
| 870 |
// ## Default ports ### |
| 871 |
const DfltCtrlPortSsl = 3371 |
| 872 |
const DfltCtrlPortPlain = 3370 |
| 873 |
const DfltStltPortSsl = 3367 |
| 874 |
const DfltStltPortPlain = 3366 |
| 875 |
|
| 876 |
// ## Boolean values ### |
| 877 |
const ValTrue = "True" |
| 878 |
const ValFalse = "False" |
| 879 |
const ValYes = "Yes" |
| 880 |
const ValNo = "No" |
| 881 |
|
| 882 |
// ## Flag string values ### |
| 883 |
const FlagClean = "CLEAN" |
| 884 |
const FlagEvicted = "EVICTED" |
| 885 |
const FlagEvacuate = "EVACUATE" |
| 886 |
const FlagDelete = "DELETE" |
| 887 |
const FlagDrbdDelete = "DRBD_DELETE" |
| 888 |
const FlagDiskless = "DISKLESS" |
| 889 |
const FlagQignore = "QIGNORE" |
| 890 |
const FlagEncrypted = "ENCRYPTED" |
| 891 |
const FlagGrossSize = "GROSS_SIZE" |
| 892 |
const FlagSuccessful = "SUCCESSFUL" |
| 893 |
const FlagShipping = "SHIPPING" |
| 894 |
const FlagShippingCleanup = "SHIPPING_CLEANUP" |
| 895 |
const FlagShippingAbort = "SHIPPING_ABORT" |
| 896 |
const FlagShipped = "SHIPPED" |
| 897 |
const FlagAutoSnapshot = "AUTO_SNAPSHOT" |
| 898 |
const FlagBackup = "BACKUP" |
| 899 |
const FlagRestoreBackupOnSuccess = "RESTORE_BACKUP_ON_SUCCESS" |
| 900 |
const FlagBackupTarget = "BACKUP_TARGET" |
| 901 |
const FlagBackupSource = "BACKUP_SOURCE" |
| 902 |
const FlagFailedDeployment = "FAILED_DEPLOYMENT" |
| 903 |
const FlagFailedDisconnect = "FAILED_DISCONNECT" |
| 904 |
const FlagResize = "RESIZE" |
| 905 |
const FlagDiskAdding = "DISK_ADDING" |
| 906 |
const FlagDiskAddRequested = "DISK_ADD_REQUESTED" |
| 907 |
const FlagDiskRemoving = "DISK_REMOVING" |
| 908 |
const FlagDiskRemoveRequested = "DISK_REMOVE_REQUESTED" |
| 909 |
const FlagTieBreaker = "TIE_BREAKER" |
| 910 |
const FlagDrbdDiskless = "DRBD_DISKLESS" |
| 911 |
const FlagDrbdClient = "CLIENT" |
| 912 |
const FlagNvmeInitiator = "NVME_INITIATOR" |
| 913 |
const FlagRscInactive = "INACTIVE" |
| 914 |
const FlagEbsInitiator = "EBS_INITIATOR" |
| 915 |
const FlagCloning = "CLONING" |
| 916 |
const FlagFailed = "FAILED" |
| 917 |
const FlagRestoreTarget = "RESTORE_TARGET" |
| 918 |
|
| 919 |
// ## Device layer kinds ### |
| 920 |
// enum generated in package -> "golinstor/devicelayerkind" |
| 921 |
// devicelayerkind.Drbd = "DRBD" |
| 922 |
// devicelayerkind.Luks = "LUKS" |
| 923 |
// devicelayerkind.Storage = "STORAGE" |
| 924 |
// devicelayerkind.Nvme = "NVME" |
| 925 |
// devicelayerkind.Writecache = "WRITECACHE" |
| 926 |
// devicelayerkind.Cache = "CACHE" |
| 927 |
// devicelayerkind.Bcache = "BCACHE" |
| 928 |
|
| 929 |
// ## Satellite connection statuses ### |
| 930 |
// enum generated in package -> "golinstor/connectionstatus" |
| 931 |
// connectionstatus.Offline = 0 |
| 932 |
// connectionstatus.Connected = 1 |
| 933 |
// connectionstatus.Online = 2 |
| 934 |
// connectionstatus.VersionMismatch = 3 |
| 935 |
// connectionstatus.FullSyncFailed = 4 |
| 936 |
// connectionstatus.AuthenticationError = 5 |
| 937 |
// connectionstatus.Unknown = 6 |
| 938 |
// connectionstatus.HostnameMismatch = 7 |
| 939 |
// connectionstatus.OtherController = 8 |
| 940 |
// connectionstatus.Authenticated = 9 |
| 941 |
// connectionstatus.NoStltConn = 10 |
| 942 |
// connectionstatus.MissingExtTools = 11 |
| 943 |
// connectionstatus.DuplicateUname = 12 |
| 944 |
|
| 945 |
// ## Satellite platform ### |
| 946 |
// enum generated in package -> "golinstor/platform" |
| 947 |
// platform.Linux = 0 |
| 948 |
// platform.Windows = 1 |
| 949 |
|
| 950 |
// ## Clone states ### |
| 951 |
// enum generated in package -> "golinstor/clonestatus" |
| 952 |
// clonestatus.Failed = "FAILED" |
| 953 |
// clonestatus.Cloning = "CLONING" |
| 954 |
// clonestatus.Complete = "COMPLETE" |
| 955 |
|
| 956 |
// ## Default names ### |
| 957 |
const DefaultNetif = "default" |
| 958 |
const DfltSnapshotShippingPrefix = "ship" |
| 959 |
|
| 960 |
// ## Default values ### |
| 961 |
const DfltAutoSnapshotKeep = "10" |
| 962 |
const DfltShippedSnapshotKeep = "10" |