k2hr3-api 1.0.41 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/config/k2hr3-init.sh.templ +2 -2
  2. package/dist/.gitkeep +0 -0
  3. package/dist/src/app.js +262 -0
  4. package/{bin → dist/src/bin}/run.sh +1 -1
  5. package/dist/src/bin/watcher.js +113 -0
  6. package/dist/src/bin/www.js +217 -0
  7. package/dist/src/lib/basicipcheck.js +392 -0
  8. package/dist/src/lib/cacerts.js +106 -0
  9. package/dist/src/lib/dbglogging.js +190 -0
  10. package/dist/src/lib/dummyuserapi.js +719 -0
  11. package/dist/src/lib/ipwatch.js +354 -0
  12. package/dist/src/lib/k2hr3acrutil.js +532 -0
  13. package/dist/src/lib/k2hr3apiutil.js +1444 -0
  14. package/dist/src/lib/k2hr3cliutil.js +183 -0
  15. package/dist/src/lib/k2hr3config.js +832 -0
  16. package/dist/src/lib/k2hr3cryptutil.js +258 -0
  17. package/dist/src/lib/k2hr3dkc.js +12121 -0
  18. package/dist/src/lib/k2hr3extdata.js +198 -0
  19. package/dist/src/lib/k2hr3keys.js +207 -0
  20. package/dist/src/lib/k2hr3resutil.js +111 -0
  21. package/dist/src/lib/k2hr3template.js +6546 -0
  22. package/dist/src/lib/k2hr3tokens.js +2643 -0
  23. package/dist/src/lib/k2hr3userdata.js +296 -0
  24. package/dist/src/lib/k8soidc.js +1000 -0
  25. package/dist/src/lib/openstackapiv2.js +695 -0
  26. package/dist/src/lib/openstackapiv3.js +932 -0
  27. package/dist/src/lib/openstackep.js +667 -0
  28. package/{tests/auto_common.js → dist/src/lib/types.js} +4 -38
  29. package/dist/src/routes/acr.js +704 -0
  30. package/dist/src/routes/debugVerify.js +294 -0
  31. package/dist/src/routes/extdata.js +219 -0
  32. package/dist/src/routes/list.js +264 -0
  33. package/dist/src/routes/policy.js +840 -0
  34. package/dist/src/routes/resource.js +1489 -0
  35. package/dist/src/routes/role.js +2627 -0
  36. package/dist/src/routes/service.js +908 -0
  37. package/dist/src/routes/tenant.js +1141 -0
  38. package/dist/src/routes/userTokens.js +482 -0
  39. package/dist/src/routes/userdata.js +212 -0
  40. package/dist/src/routes/version.js +103 -0
  41. package/package.json +152 -121
  42. package/ChangeLog +0 -372
  43. package/app.js +0 -292
  44. package/bin/watcher +0 -122
  45. package/bin/www +0 -180
  46. package/eslint.config.mjs +0 -68
  47. package/lib/basicipcheck.js +0 -376
  48. package/lib/cacerts.js +0 -71
  49. package/lib/dbglogging.js +0 -151
  50. package/lib/dummyuserapi.js +0 -766
  51. package/lib/ipwatch.js +0 -379
  52. package/lib/k2hr3acrutil.js +0 -516
  53. package/lib/k2hr3apiutil.js +0 -1494
  54. package/lib/k2hr3cliutil.js +0 -191
  55. package/lib/k2hr3config.js +0 -826
  56. package/lib/k2hr3cryptutil.js +0 -254
  57. package/lib/k2hr3dkc.js +0 -12632
  58. package/lib/k2hr3extdata.js +0 -198
  59. package/lib/k2hr3keys.js +0 -234
  60. package/lib/k2hr3resutil.js +0 -100
  61. package/lib/k2hr3template.js +0 -6925
  62. package/lib/k2hr3tokens.js +0 -2799
  63. package/lib/k2hr3userdata.js +0 -312
  64. package/lib/k8soidc.js +0 -1012
  65. package/lib/openstackapiv2.js +0 -764
  66. package/lib/openstackapiv3.js +0 -1032
  67. package/lib/openstackep.js +0 -553
  68. package/routes/acr.js +0 -738
  69. package/routes/debugVerify.js +0 -263
  70. package/routes/extdata.js +0 -232
  71. package/routes/list.js +0 -270
  72. package/routes/policy.js +0 -869
  73. package/routes/resource.js +0 -1441
  74. package/routes/role.js +0 -2664
  75. package/routes/service.js +0 -894
  76. package/routes/tenant.js +0 -1095
  77. package/routes/userTokens.js +0 -511
  78. package/routes/userdata.js +0 -218
  79. package/routes/version.js +0 -108
  80. package/templ/Dockerfile.templ +0 -71
  81. package/tests/auto_acr.js +0 -1101
  82. package/tests/auto_acr_spec.js +0 -79
  83. package/tests/auto_all_spec.js +0 -142
  84. package/tests/auto_control_subprocess.sh +0 -243
  85. package/tests/auto_extdata.js +0 -220
  86. package/tests/auto_extdata_spec.js +0 -79
  87. package/tests/auto_init_config_json.sh +0 -275
  88. package/tests/auto_k2hdkc_server.ini +0 -109
  89. package/tests/auto_k2hdkc_slave.ini +0 -83
  90. package/tests/auto_list.js +0 -439
  91. package/tests/auto_list_spec.js +0 -79
  92. package/tests/auto_policy.js +0 -1579
  93. package/tests/auto_policy_spec.js +0 -79
  94. package/tests/auto_resource.js +0 -10956
  95. package/tests/auto_resource_spec.js +0 -79
  96. package/tests/auto_role.js +0 -6150
  97. package/tests/auto_role_spec.js +0 -79
  98. package/tests/auto_service.js +0 -770
  99. package/tests/auto_service_spec.js +0 -79
  100. package/tests/auto_subprocesses.js +0 -114
  101. package/tests/auto_template.sh +0 -126
  102. package/tests/auto_tenant.js +0 -1100
  103. package/tests/auto_tenant_spec.js +0 -79
  104. package/tests/auto_token_util.js +0 -219
  105. package/tests/auto_userdata.js +0 -292
  106. package/tests/auto_userdata_spec.js +0 -79
  107. package/tests/auto_usertokens.js +0 -565
  108. package/tests/auto_usertokens_spec.js +0 -79
  109. package/tests/auto_version.js +0 -127
  110. package/tests/auto_version_spec.js +0 -79
  111. package/tests/auto_watcher.js +0 -157
  112. package/tests/auto_watcher_spec.js +0 -79
  113. package/tests/k2hdkc_test.data +0 -986
  114. package/tests/k2hdkc_test_load.sh +0 -255
  115. package/tests/k2hr3template_test.js +0 -187
  116. package/tests/k2hr3template_test.sh +0 -339
  117. package/tests/k2hr3template_test_async.js +0 -216
  118. package/tests/k2hr3template_test_template.result +0 -7117
  119. package/tests/k2hr3template_test_template.txt +0 -3608
  120. package/tests/k2hr3template_test_vars.js +0 -194
  121. package/tests/manual_acr_delete.js +0 -143
  122. package/tests/manual_acr_get.js +0 -297
  123. package/tests/manual_acr_postput.js +0 -215
  124. package/tests/manual_allusertenant_get.js +0 -113
  125. package/tests/manual_extdata_get.js +0 -191
  126. package/tests/manual_k2hr3keys_get.js +0 -84
  127. package/tests/manual_list_gethead.js +0 -230
  128. package/tests/manual_policy_delete.js +0 -132
  129. package/tests/manual_policy_gethead.js +0 -275
  130. package/tests/manual_policy_postput.js +0 -297
  131. package/tests/manual_resource_delete.js +0 -433
  132. package/tests/manual_resource_gethead.js +0 -423
  133. package/tests/manual_resource_postput.js +0 -487
  134. package/tests/manual_role_delete.js +0 -404
  135. package/tests/manual_role_gethead.js +0 -547
  136. package/tests/manual_role_postput.js +0 -544
  137. package/tests/manual_service_delete.js +0 -153
  138. package/tests/manual_service_gethead.js +0 -178
  139. package/tests/manual_service_postput.js +0 -348
  140. package/tests/manual_tenant_delete.js +0 -186
  141. package/tests/manual_tenant_gethead.js +0 -268
  142. package/tests/manual_tenant_postput.js +0 -293
  143. package/tests/manual_test.sh +0 -352
  144. package/tests/manual_userdata_get.js +0 -173
  145. package/tests/manual_usertoken_gethead.js +0 -136
  146. package/tests/manual_usertoken_postput.js +0 -310
  147. package/tests/manual_version_get.js +0 -127
  148. package/tests/run_local_test_k2hdkc.sh +0 -174
  149. package/tests/test.sh +0 -333
@@ -1,79 +0,0 @@
1
- /*
2
- * K2HR3 REST API
3
- *
4
- * Copyright 2017 Yahoo Japan Corporation.
5
- *
6
- * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
- * common management information for the cloud.
8
- * K2HR3 can dynamically manage information as "who", "what", "operate".
9
- * These are stored as roles, resources, policies in K2hdkc, and the
10
- * client system can dynamically read and modify these information.
11
- *
12
- * For the full copyright and license information, please view
13
- * the license file that was distributed with this source code.
14
- *
15
- * AUTHOR: Takeshi Nakatani
16
- * CREATE: Mon May 18 2020
17
- * REVISION:
18
- *
19
- */
20
-
21
- 'use strict';
22
-
23
- var common = require('./auto_common'); // Common objects for Chai
24
- var chai = common.chai; // eslint-disable-line no-unused-vars
25
- var chaiHttp = common.chaiHttp; // eslint-disable-line no-unused-vars
26
- var app = common.app; // eslint-disable-line no-unused-vars
27
- var assert = common.assert; // eslint-disable-line no-unused-vars
28
- var expect = common.expect; // eslint-disable-line no-unused-vars
29
- var subproc = require('./auto_subprocesses');
30
-
31
- //--------------------------------------------------------------
32
- // Before in global section
33
- //--------------------------------------------------------------
34
- before(function(){ // eslint-disable-line no-undef
35
- //
36
- // Start all sub processes
37
- //
38
- subproc.start(this);
39
- });
40
-
41
- //--------------------------------------------------------------
42
- // After in global section
43
- //--------------------------------------------------------------
44
- after(function(){ // eslint-disable-line no-undef
45
- //
46
- // Stop all sub processes
47
- //
48
- subproc.stop(this);
49
- });
50
-
51
- //--------------------------------------------------------------
52
- // BeforeEach in global section
53
- //--------------------------------------------------------------
54
- beforeEach(function(){ // eslint-disable-line no-undef
55
- // Nothing to do
56
- });
57
-
58
- //--------------------------------------------------------------
59
- // AfterEach in global section
60
- //--------------------------------------------------------------
61
- afterEach(function(){ // eslint-disable-line no-undef
62
- // Nothing to do
63
- });
64
-
65
- //--------------------------------------------------------------
66
- // Sub describe section
67
- //--------------------------------------------------------------
68
- describe('SUB API TEST: EXTDATA', function(){ // eslint-disable-line no-undef
69
- require('./auto_extdata');
70
- });
71
-
72
- /*
73
- * Local variables:
74
- * tab-width: 4
75
- * c-basic-offset: 4
76
- * End:
77
- * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
- * vim<600: noexpandtab sw=4 ts=4
79
- */
@@ -1,275 +0,0 @@
1
- #!/bin/sh
2
- #
3
- # K2HR3 REST API
4
- #
5
- # Copyright 2017 Yahoo Japan Corporation.
6
- #
7
- # K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
8
- # common management information for the cloud.
9
- # K2HR3 can dynamically manage information as "who", "what", "operate".
10
- # These are stored as roles, resources, policies in K2hdkc, and the
11
- # client system can dynamically read and modify these information.
12
- #
13
- # For the full copyright and license information, please view
14
- # the license file that was distributed with this source code.
15
- #
16
- # AUTHOR: Takeshi Nakatani
17
- # CREATE: Mon Dec 25 2017
18
- # REVISION:
19
- #
20
-
21
- #----------------------------------------------------------
22
- # This script is checking/creating/Restoring config/local.json5
23
- # (and local-development.json5) for test environment
24
- #----------------------------------------------------------
25
-
26
- #==========================================================
27
- # Common Variables
28
- #==========================================================
29
- PRGNAME=$(basename "$0")
30
- SCRIPTDIR=$(dirname "$0")
31
- SCRIPTDIR=$(cd "${SCRIPTDIR}" || exit 1; pwd)
32
- SRCTOP=$(cd "${SCRIPTDIR}/.." || exit 1; pwd)
33
-
34
- #
35
- # Variables
36
- #
37
- CONFIGDIR="${SRCTOP}/config"
38
- LOCAL_JSON5="${CONFIGDIR}/local.json5"
39
- LOCAL_JSON5_BUP="${LOCAL_JSON5}_AUTOTEST_BUP"
40
- LOCALDEVELOP_JSON5="${CONFIGDIR}/local-development.json5"
41
- LOCALDEVELOP_JSON5_BUP="${LOCALDEVELOP_JSON5}_AUTOTEST_BUP"
42
- DUMMY_JSON5="${CONFIGDIR}/dummyuser.json5"
43
-
44
- #==============================================================
45
- # Utility functions
46
- #==============================================================
47
- #
48
- # Usage
49
- #
50
- PrintUsage()
51
- {
52
- echo ""
53
- echo "Usage: $1 [--help(-h)] [--set(-s) | --restore(-r)]"
54
- echo ""
55
- }
56
-
57
- #==========================================================
58
- # Parse options
59
- #==========================================================
60
- PROC_MODE=""
61
-
62
- while [ $# -ne 0 ]; do
63
- if [ -z "$1" ]; then
64
- break
65
-
66
- elif echo "$1" | grep -q -i -e "^-h$" -e "^--help$"; then
67
- PrintUsage "${PRGNAME}"
68
- exit 0
69
-
70
- elif echo "$1" | grep -q -i -e "^-s$" -e "^--set$"; then
71
- if [ -n "${PROC_MODE}" ]; then
72
- echo "[ERROR] already specified --set(-s) or --restore(-r) option"
73
- exit 1
74
- fi
75
- PROC_MODE="set"
76
-
77
- elif echo "$1" | grep -q -i -e "^-r$" -e "^--restore$"; then
78
- if [ -n "${PROC_MODE}" ]; then
79
- echo "[ERROR] already specified --set(-s) or --restore(-r) option"
80
- exit 1
81
- fi
82
- PROC_MODE="restore"
83
-
84
- else
85
- echo "[ERROR] Unknown option $1"
86
- exit 1
87
- fi
88
- shift
89
- done
90
-
91
- if [ -z "${PROC_MODE}" ]; then
92
- echo "[ERROR] You must specify --set(-s) or --restore(-r) option."
93
- exit 1
94
- fi
95
-
96
- #==========================================================
97
- # Do work
98
- #==========================================================
99
- if [ "${PROC_MODE}" = "set" ]; then
100
- #
101
- # Set Mode
102
- #
103
-
104
- #
105
- # Check local.json5
106
- #
107
- if [ -f "${LOCAL_JSON5}" ]; then
108
- if [ ! -L "${LOCAL_JSON5}" ]; then
109
- echo "[ERROR] ${LOCAL_JSON5} is existed as real file."
110
- exit 1
111
- fi
112
-
113
- if ! SLINK_FILE=$(readlink "${LOCAL_JSON5}"); then
114
- echo "[ERROR] Could not read link as ${LOCAL_JSON5}"
115
- exit 1
116
- fi
117
-
118
- if [ "${SLINK_FILE}" = "${DUMMY_JSON5}" ]; then
119
- #
120
- # local.json5 is already linked to dummyuser.json5
121
- #
122
- echo "[INFO] Already ${LOCAL_JSON5} file is linked ${DUMMY_JSON5}"
123
-
124
- else
125
- #
126
- # Make backup and create new symbolic link file
127
- #
128
- if [ -f "${LOCAL_JSON5_BUP}" ]; then
129
- echo "[ERROR] Could not rename file ${LOCAL_JSON5} to ${LOCAL_JSON5_BUP}, because ${LOCAL_JSON5_BUP} already exists."
130
- exit 1
131
- fi
132
-
133
- #
134
- # Rename
135
- #
136
- if ! mv "${LOCAL_JSON5}" "${LOCAL_JSON5_BUP}" >/dev/null 2>&1; then
137
- echo "[ERROR] Could not rename file ${LOCAL_JSON5} to ${LOCAL_JSON5_BUP}"
138
- exit 1
139
- fi
140
-
141
- #
142
- # Make symbolic link local.json5
143
- #
144
- if ! ln -s "${DUMMY_JSON5}" "${LOCAL_JSON5}" >/dev/null 2>&1; then
145
- echo "[ERROR] Could not create symbolic file ${DUMMY_JSON5} to ${LOCAL_JSON5}"
146
- exit 1
147
- fi
148
- fi
149
- else
150
- #
151
- # There is no local.json5, thus only make symbolic link local.json5
152
- #
153
- if ! ln -s "${DUMMY_JSON5}" "${LOCAL_JSON5}" >/dev/null 2>&1; then
154
- echo "[ERROR] Could not create symbolic file ${DUMMY_JSON5} to ${LOCAL_JSON5}"
155
- exit 1
156
- fi
157
- fi
158
-
159
- #
160
- # Check local-development.json5
161
- #
162
- if [ -f "${LOCALDEVELOP_JSON5}" ]; then
163
- if [ -f "${LOCALDEVELOP_JSON5_BUP}" ]; then
164
- echo "[ERROR] Could not rename file ${LOCALDEVELOP_JSON5} to ${LOCALDEVELOP_JSON5_BUP}, because ${LOCALDEVELOP_JSON5_BUP} already exists."
165
- exit 1
166
- fi
167
-
168
- #
169
- # Rename
170
- #
171
- if ! mv "${LOCALDEVELOP_JSON5}" "${LOCALDEVELOP_JSON5_BUP}" >/dev/null 2>&1; then
172
- echo "[ERROR] Could not rename file ${LOCALDEVELOP_JSON5} to ${LOCALDEVELOP_JSON5_BUP}"
173
- exit 1
174
- fi
175
- fi
176
- else
177
- #
178
- # Restore Mode
179
- #
180
-
181
- #
182
- # Restore local.json5
183
- #
184
- if [ ! -f "${LOCAL_JSON5_BUP}" ]; then
185
- if [ -f "${LOCAL_JSON5}" ]; then
186
- if [ ! -L "${LOCAL_JSON5}" ]; then
187
- echo "[WARNING] Not found ${LOCAL_JSON5_BUP} and exists ${LOCAL_JSON5} as real file, so nothing to do"
188
- else
189
- #
190
- # local.json5 is symbolic link
191
- #
192
- if ! SLINK_FILE=$(readlink "${LOCAL_JSON5}"); then
193
- echo "[ERROR] Could not read link as ${LOCAL_JSON5}"
194
- exit 1
195
- fi
196
-
197
- if [ "${SLINK_FILE}" = "${DUMMY_JSON5}" ]; then
198
- #
199
- # local.json5 is linked to dummyuser.json5
200
- #
201
- if ! rm -f "${LOCAL_JSON5}"; then
202
- echo "[ERROR] Could not remove file ${LOCAL_JSON5}"
203
- exit 1
204
- fi
205
- else
206
- #
207
- # local.json5 is not linked to dummyuser.json5
208
- #
209
- echo "[WARNING] Not found ${LOCAL_JSON5_BUP} and exists ${LOCAL_JSON5} as symbolic link, but it is not linking to dummyuser.json5"
210
- fi
211
- fi
212
- else
213
- echo "[WARNING] Not found ${LOCAL_JSON5_BUP} and ${LOCAL_JSON5}."
214
- fi
215
- else
216
- if [ -f "${LOCAL_JSON5}" ]; then
217
- if [ ! -L "${LOCAL_JSON5}" ]; then
218
- echo "[WARNING] ${LOCAL_JSON5} is not created by ${PRGNAME} program, because it is not symbolic link."
219
- else
220
- if ! SLINK_FILE=$(readlink "${LOCAL_JSON5}"); then
221
- echo "[ERROR] Could not read link as ${LOCAL_JSON5}"
222
- exit 1
223
- fi
224
-
225
- if [ "${SLINK_FILE}" != "${DUMMY_JSON5}" ]; then
226
- echo "[WARNING] ${LOCAL_JSON5} is not created by ${PRGNAME} program, because it is not symbolic link to ${DUMMY_JSON5}."
227
- else
228
- # remove
229
- if ! rm -f "${LOCAL_JSON5}"; then
230
- echo "[ERROR] Could not remove file ${LOCAL_JSON5}"
231
- exit 1
232
- fi
233
- fi
234
- fi
235
- fi
236
-
237
- #
238
- # Rename
239
- #
240
- if ! mv "${LOCAL_JSON5_BUP}" "${LOCAL_JSON5}" >/dev/null 2>&1; then
241
- echo "[ERROR] Could not rename file ${LOCAL_JSON5_BUP} to ${LOCAL_JSON5}"
242
- exit 1
243
- fi
244
- fi
245
-
246
- #
247
- # Restore local-development.json5
248
- #
249
- if [ ! -f "${LOCALDEVELOP_JSON5_BUP}" ]; then
250
- echo "[INFO] Not found ${LOCALDEVELOP_JSON5_BUP}, skip restoring ${LOCALDEVELOP_JSON5}."
251
- else
252
- if [ -f "${LOCALDEVELOP_JSON5}" ]; then
253
- echo "[WARNING] ${LOCALDEVELOP_JSON5} already exists, could not restoring from ${LOCALDEVELOP_JSON5_BUP}."
254
- else
255
- #
256
- # Rename
257
- #
258
- if ! mv "${LOCALDEVELOP_JSON5_BUP}" "${LOCALDEVELOP_JSON5}" >/dev/null 2>&1; then
259
- echo "[ERROR] Could not rename file ${LOCALDEVELOP_JSON5_BUP} to ${LOCALDEVELOP_JSON5}"
260
- exit 1
261
- fi
262
- fi
263
- fi
264
- fi
265
-
266
- exit 0
267
-
268
- #
269
- # Local variables:
270
- # tab-width: 4
271
- # c-basic-offset: 4
272
- # End:
273
- # vim600: noexpandtab sw=4 ts=4 fdm=marker
274
- # vim<600: noexpandtab sw=4 ts=4
275
- #
@@ -1,109 +0,0 @@
1
- #
2
- # K2HDKC CONFIGRATION FILE K2HR3 REST API TEST
3
- #
4
- # Copyright 2017 Yahoo Japan Corporation.
5
- #
6
- # K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
- # common management information for the cloud.
8
- # K2HR3 can dynamically manage information as "who", "what", "operate".
9
- # These are stored as roles, resources, policies in K2hdkc, and the
10
- # client system can dynamically read and modify these information.
11
- #
12
- # For the full copyright and license information, please view
13
- # the license file that was distributed with this source code.
14
- #
15
- # AUTHOR: Takeshi Nakatani
16
- # CREATE: Wed Dec 20 2017
17
- # REVISION:
18
- #
19
-
20
- #
21
- # GLOBAL SECTION
22
- #
23
- [GLOBAL]
24
- FILEVERSION = 1
25
- DATE = Wed, 20 Dec 2017 09:50:50 +0900
26
- GROUP = K2HR3DKCTEST
27
- MODE = SERVER
28
- DELIVERMODE = hash
29
- MAXCHMPX = 2
30
- REPLICA = 0
31
- MAXMQSERVER = 2
32
- MAXMQCLIENT = 4
33
- MQPERATTACH = 2
34
- MAXQPERSERVERMQ = 2
35
- MAXQPERCLIENTMQ = 2
36
- MAXMQPERCLIENT = 2
37
- MAXHISTLOG = 0
38
- PORT = 18020
39
- CTLPORT = 18021
40
- SELFCTLPORT = 18021
41
- RWTIMEOUT = 100000
42
- RETRYCNT = 1000
43
- CONTIMEOUT = 500000
44
- MQRWTIMEOUT = 1000
45
- MQRETRYCNT = 10000
46
- MQACK = no
47
- AUTOMERGE = on
48
- DOMERGE = on
49
- MERGETIMEOUT = 0
50
- SOCKTHREADCNT = 1
51
- MQTHREADCNT = 1
52
- MAXSOCKPOOL = 1
53
- SOCKPOOLTIMEOUT = 0
54
- SSL = no
55
- K2HFULLMAP = on
56
- K2HMASKBIT = 4
57
- K2HCMASKBIT = 4
58
- K2HMAXELE = 4
59
-
60
- #
61
- # SERVER NODES SECTION
62
- #
63
- [SVRNODE]
64
- NAME = localhost
65
- PORT = 18020
66
- CTLPORT = 18021
67
- SSL = no
68
-
69
- #
70
- # SLAVE NODES SECTION
71
- #
72
- [SLVNODE]
73
- NAME = [.]*
74
- CTLPORT = 18031
75
-
76
- #
77
- # K2HDKC SECTION
78
- #
79
- [K2HDKC]
80
- #RCVTIMEOUT = 1000
81
- #SVRNODEINI = <file path>
82
- #REPLCLUSTERINI = <file path>
83
- #DTORTHREADCNT = 1
84
- #DTORCTP = path.so
85
- K2HTYPE = mem
86
- #K2HFILE = /tmp/k2hdkc_test.k2h
87
- K2HFULLMAP = on
88
- K2HINIT = on
89
- K2HMASKBIT = 4
90
- K2HCMASKBIT = 4
91
- K2HMAXELE = 8
92
- K2HPAGESIZE = 256
93
- #PASSPHRASES = <pass phrase>
94
- #PASSFILE = <file path>
95
- #HISTORY = no
96
- #EXPIRE = 300
97
- #ATTRPLUGIN = <file path>
98
- #MINTHREAD = 1
99
- MAXTHREAD = 4
100
- #REDUCETIME = 30
101
-
102
- #
103
- # Local variables:
104
- # tab-width: 4
105
- # c-basic-offset: 4
106
- # End:
107
- # vim600: noexpandtab sw=4 ts=4 fdm=marker
108
- # vim<600: noexpandtab sw=4 ts=4
109
- #
@@ -1,83 +0,0 @@
1
- #
2
- # K2HDKC CONFIGRATION FILE K2HR3 REST API TEST
3
- #
4
- # Copyright 2017 Yahoo Japan Corporation.
5
- #
6
- # K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
- # common management information for the cloud.
8
- # K2HR3 can dynamically manage information as "who", "what", "operate".
9
- # These are stored as roles, resources, policies in K2hdkc, and the
10
- # client system can dynamically read and modify these information.
11
- #
12
- # For the full copyright and license information, please view
13
- # the license file that was distributed with this source code.
14
- #
15
- # AUTHOR: Takeshi Nakatani
16
- # CREATE: Wed Dec 20 2017
17
- # REVISION:
18
- #
19
-
20
- #
21
- # GLOBAL SECTION
22
- #
23
- [GLOBAL]
24
- FILEVERSION = 1
25
- DATE = Wed, 20 Dec 2017 09:50:50 +0900
26
- GROUP = K2HR3DKCTEST
27
- MODE = SLAVE
28
- DELIVERMODE = hash
29
- MAXCHMPX = 2
30
- REPLICA = 0
31
- MAXMQSERVER = 2
32
- MAXMQCLIENT = 4
33
- MQPERATTACH = 2
34
- MAXQPERSERVERMQ = 2
35
- MAXQPERCLIENTMQ = 2
36
- MAXMQPERCLIENT = 2
37
- MAXHISTLOG = 0
38
- #PORT = 18030
39
- CTLPORT = 18031
40
- SELFCTLPORT = 18031
41
- RWTIMEOUT = 100000
42
- RETRYCNT = 1000
43
- CONTIMEOUT = 500000
44
- MQRWTIMEOUT = 1000
45
- MQRETRYCNT = 10000
46
- MQACK = no
47
- AUTOMERGE = on
48
- DOMERGE = on
49
- MERGETIMEOUT = 0
50
- SOCKTHREADCNT = 1
51
- MQTHREADCNT = 1
52
- MAXSOCKPOOL = 1
53
- SOCKPOOLTIMEOUT = 0
54
- SSL = no
55
- K2HFULLMAP = on
56
- K2HMASKBIT = 4
57
- K2HCMASKBIT = 4
58
- K2HMAXELE = 4
59
-
60
- #
61
- # SERVER NODES SECTION
62
- #
63
- [SVRNODE]
64
- NAME = localhost
65
- PORT = 18020
66
- CTLPORT = 18021
67
- SSL = no
68
-
69
- #
70
- # SLAVE NODES SECTION
71
- #
72
- [SLVNODE]
73
- NAME = [.]*
74
- CTLPORT = 18031
75
-
76
- #
77
- # Local variables:
78
- # tab-width: 4
79
- # c-basic-offset: 4
80
- # End:
81
- # vim600: noexpandtab sw=4 ts=4 fdm=marker
82
- # vim<600: noexpandtab sw=4 ts=4
83
- #