kaqing 2.0.188__py3-none-any.whl → 2.0.200__py3-none-any.whl
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.
Potentially problematic release.
This version of kaqing might be problematic. Click here for more details.
- adam/batch.py +6 -6
- adam/commands/bash/bash.py +1 -1
- adam/commands/bash/utils_bash.py +1 -1
- adam/commands/cassandra/__init__.py +0 -0
- adam/commands/cassandra/download_cassandra_log.py +45 -0
- adam/commands/cassandra/nodetool.py +64 -0
- adam/commands/cassandra/nodetool_commands.py +120 -0
- adam/commands/cassandra/restart_cluster.py +47 -0
- adam/commands/cassandra/restart_node.py +51 -0
- adam/commands/cassandra/restart_nodes.py +47 -0
- adam/commands/cassandra/rollout.py +88 -0
- adam/commands/cat.py +2 -2
- adam/commands/cd.py +2 -2
- adam/commands/command.py +1 -1
- adam/commands/commands_utils.py +8 -13
- adam/commands/cql/alter_tables.py +66 -0
- adam/commands/cql/completions_c.py +1 -0
- adam/commands/cql/utils_cql.py +5 -5
- adam/commands/debug/__init__.py +0 -0
- adam/commands/debug/debug.py +22 -0
- adam/commands/debug/debug_completes.py +35 -0
- adam/commands/debug/debug_timings.py +35 -0
- adam/commands/devices/devices.py +1 -1
- adam/commands/download_cassandra_log.py +45 -0
- adam/commands/download_file.py +3 -3
- adam/commands/export/export_sessions.py +1 -1
- adam/commands/export/exporter.py +1 -1
- adam/commands/find_processes.py +2 -2
- adam/commands/generate_report.py +52 -0
- adam/commands/head.py +2 -2
- adam/commands/ls.py +2 -2
- adam/commands/medusa/medusa_restore.py +0 -16
- adam/commands/nodetool.py +1 -1
- adam/commands/os/__init__.py +0 -0
- adam/commands/os/cat.py +36 -0
- adam/commands/os/download_file.py +47 -0
- adam/commands/os/find_files.py +51 -0
- adam/commands/os/find_processes.py +76 -0
- adam/commands/os/head.py +36 -0
- adam/commands/os/shell.py +41 -0
- adam/commands/postgres/postgres_databases.py +2 -3
- adam/commands/preview_table.py +1 -1
- adam/commands/restart_cluster.py +47 -0
- adam/commands/restart_node.py +51 -0
- adam/commands/restart_nodes.py +47 -0
- adam/commands/show/show_cli_commands.py +1 -1
- adam/config.py +4 -6
- adam/embedded_params.py +1 -1
- adam/repl.py +5 -3
- adam/repl_commands.py +11 -6
- adam/repl_session.py +4 -3
- adam/repl_state.py +6 -0
- adam/sql/async_executor.py +44 -0
- adam/sql/lark_completer.py +6 -4
- adam/sql/qingl.lark +1076 -0
- adam/utils.py +95 -23
- adam/utils_k8s/app_clusters.py +1 -1
- adam/utils_k8s/app_pods.py +2 -3
- adam/utils_k8s/cassandra_clusters.py +7 -3
- adam/utils_k8s/cassandra_nodes.py +8 -5
- adam/utils_k8s/kube_context.py +1 -4
- adam/utils_k8s/pods.py +55 -1
- adam/utils_repl/repl_completer.py +4 -87
- adam/version.py +1 -1
- {kaqing-2.0.188.dist-info → kaqing-2.0.200.dist-info}/METADATA +1 -1
- {kaqing-2.0.188.dist-info → kaqing-2.0.200.dist-info}/RECORD +69 -45
- adam/commands/logs.py +0 -37
- adam/commands/report.py +0 -61
- adam/commands/restart.py +0 -60
- {kaqing-2.0.188.dist-info → kaqing-2.0.200.dist-info}/WHEEL +0 -0
- {kaqing-2.0.188.dist-info → kaqing-2.0.200.dist-info}/entry_points.txt +0 -0
- {kaqing-2.0.188.dist-info → kaqing-2.0.200.dist-info}/top_level.txt +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
adam/__init__.py,sha256=is7iqn2nhRzPymhTEajITEFVyvROZ9GWfNsZX3L5g_o,45
|
|
2
2
|
adam/app_session.py,sha256=I2EX7eNRCP6T9u1BTVLs-5SB1ypyhSwNvVmi4nwoU-0,6836
|
|
3
3
|
adam/apps.py,sha256=f1qsIOYjn4fdpCvMfOBns5YEiA5fMm7yZu3cQrK6z2M,7049
|
|
4
|
-
adam/batch.py,sha256=
|
|
4
|
+
adam/batch.py,sha256=9naBuqH0Kg_ldVvckyJmo9nSzjn4AFC5uFyJJWnlHY0,24132
|
|
5
5
|
adam/cli.py,sha256=03pIZdomAu7IL-GSP6Eun_PKwwISShRAmfx6eVRPGC0,458
|
|
6
6
|
adam/cli_group.py,sha256=W3zy1BghCtVcEXizq8fBH-93ZRVVwgAyGPzy0sHno1Y,593
|
|
7
|
-
adam/config.py,sha256=
|
|
7
|
+
adam/config.py,sha256=ra2pm1NsHWLUXhhn-ES_tI5MCZx44x2eBoHAjnCd1JA,2642
|
|
8
8
|
adam/embedded_apps.py,sha256=lKPx63mKzJbNmwz0rgL4gF76M9fDGxraYTtNAIGnZ_s,419
|
|
9
|
-
adam/embedded_params.py,sha256=
|
|
9
|
+
adam/embedded_params.py,sha256=oJjtr0d1VdXw2MtEorm3tKYv1LRkGNfvZPMX2EWiX8Q,6434
|
|
10
10
|
adam/log.py,sha256=vcJ1Q8LLnt3NSXqpVcKjAI2OZE6KaD3PEi1kfu_D8qs,1156
|
|
11
11
|
adam/pod_exec_result.py,sha256=85jy_5dS6TEEk5ijU0B62YfUycxmD3dG8mhIHFPipc8,1260
|
|
12
|
-
adam/repl.py,sha256=
|
|
13
|
-
adam/repl_commands.py,sha256=
|
|
14
|
-
adam/repl_session.py,sha256=
|
|
15
|
-
adam/repl_state.py,sha256=
|
|
16
|
-
adam/utils.py,sha256
|
|
12
|
+
adam/repl.py,sha256=V5q0AfFnFKPyOZNPdy9WZGJCH6_jyOTCxa3WS9jU9Ro,7623
|
|
13
|
+
adam/repl_commands.py,sha256=dZn6a9kxZgYgFukS5LQY8CQ0woiuVqmPrQMHMLV-ZGY,7319
|
|
14
|
+
adam/repl_session.py,sha256=BWjPJq3lHrK6I5wxMqgKyv9_k98yEScn1-WHqsEk0k8,823
|
|
15
|
+
adam/repl_state.py,sha256=jdW56D2gjIEM40ttYtsr2MyIC8oW4KpxuhfQLUgTWZA,16168
|
|
16
|
+
adam/utils.py,sha256=KZQN2JsGjwJup7jowDrLx5b_y2OQXv4FviSpYmTT04s,24720
|
|
17
17
|
adam/utils_athena.py,sha256=13ZtBlOIDhIvZYRGRLtDrKrEcn4VIq87IZVrIkM1mAM,5389
|
|
18
18
|
adam/utils_audits.py,sha256=lZ2U1AcROxLB4652auG091QFTPs_YNzbtdXBiK6bY_Y,4063
|
|
19
19
|
adam/utils_issues.py,sha256=nWhzUXmD2IfbT8MzjdyvuvpKrtUoieF74O2joaWFpUU,1438
|
|
20
20
|
adam/utils_local.py,sha256=3RIvP5ZluJhOl-z9qi5U4bLFP5_vuYGnjcY-koO40lE,109
|
|
21
21
|
adam/utils_net.py,sha256=byEtNVr8iG9UaD7dM77dN2WEBClB7YNKult7LKFTCOc,428
|
|
22
22
|
adam/utils_sqlite.py,sha256=z34AxQL1HZBcv704NXZsMerWt-BPtnCUUw1rZHQB9Bw,4330
|
|
23
|
-
adam/version.py,sha256=
|
|
23
|
+
adam/version.py,sha256=G2YWxjnq2Atug-Qnc2AKsLrdY1A0qKD_gCj28i17Ouo,140
|
|
24
24
|
adam/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
adam/checks/check.py,sha256=Qopr3huYcMu2bzQgb99dEUYjFzkjKHRI76S6KA9b9Rk,702
|
|
26
26
|
adam/checks/check_context.py,sha256=FEHkQ32jY1EDopQ2uYWqy9v7aEEX1orLpJWhopwAlh4,402
|
|
@@ -56,35 +56,37 @@ adam/columns/volume_cassandra.py,sha256=9KRNOzjNYganI9avN6zaA5_-7yxD4rV-KNxro9CS
|
|
|
56
56
|
adam/columns/volume_root.py,sha256=29ujLoCAf9LO75u62LxEaPD58s6ihV-tcK17OeLSOM0,556
|
|
57
57
|
adam/commands/__init__.py,sha256=xMC9cRhdshstKEgmu5-euiAE53vvWItKqUzlKhTteAg,1302
|
|
58
58
|
adam/commands/alter_tables.py,sha256=yNqIYDoZd2xZEl3hc8E6V1Br6_BEM3X7DCnXFGuR1pQ,3216
|
|
59
|
-
adam/commands/cat.py,sha256=
|
|
60
|
-
adam/commands/cd.py,sha256=
|
|
59
|
+
adam/commands/cat.py,sha256=_h8V1g57zKCeSeE7MVuqCC3k90_q3fd19FvdvCP8Q9g,1278
|
|
60
|
+
adam/commands/cd.py,sha256=bvFgqzd0b4BROExcCaN_y-_tnyUUDEuoQk3dXest9l0,1330
|
|
61
61
|
adam/commands/check.py,sha256=5aa4DAIMB24HNY-zYwHGthQM_9qwB-vlKpzeaq65HBs,2314
|
|
62
62
|
adam/commands/cli_commands.py,sha256=sbGi1AoSlZsgUmaZ1p5Jk5gQ0VlkET9czUWq-Ars93w,3765
|
|
63
63
|
adam/commands/clipboard_copy.py,sha256=2FOBPbrb59D3unNUaKJhkEPJQ7f09O0JQkqqP567_a4,3171
|
|
64
64
|
adam/commands/code.py,sha256=q95MN9Ts7xjCAUZB50Q8MJYNPzny-4FeI2LdwMBzozQ,1890
|
|
65
|
-
adam/commands/command.py,sha256=
|
|
65
|
+
adam/commands/command.py,sha256=W9ynh5kIy7h3r-ksHFP2CbU9ZrukxfMr_LpRir2qzqc,9820
|
|
66
66
|
adam/commands/command_helpers.py,sha256=leOJJK1UXczNTJHN9TGMCbIpUpmpreULvQ-TvnsYS7w,1134
|
|
67
|
-
adam/commands/commands_utils.py,sha256=
|
|
68
|
-
adam/commands/
|
|
67
|
+
adam/commands/commands_utils.py,sha256=NmNQD_m6kcXp1aW4SuLssk4V6zOWzmcqzWOGXAsTQ5g,2948
|
|
68
|
+
adam/commands/download_cassandra_log.py,sha256=U7pojvjdZ5YB_qW34V6GvthB4JLRAU7CxXwG0kM_vZU,1643
|
|
69
|
+
adam/commands/download_file.py,sha256=xY5-o1cKhIvToVFz8iT3kcU5zBuIiOdPcGQz3oENnak,1839
|
|
69
70
|
adam/commands/exit.py,sha256=T7bCEShd6MXQ8rXak7vGZTvqEOejPOUPtbdfy7d8WWA,753
|
|
70
71
|
adam/commands/find_files.py,sha256=2yx-RhOHvok0y0wxYf-OChWghEQc_pnp3B_nASt33zk,1480
|
|
71
|
-
adam/commands/find_processes.py,sha256=
|
|
72
|
-
adam/commands/
|
|
72
|
+
adam/commands/find_processes.py,sha256=Ta1l5zddaazoWjaKZb8LRa4sfemr8HbOAdlLXNWBGrM,2908
|
|
73
|
+
adam/commands/generate_report.py,sha256=KNFnRxwKDfXi1kfoqQQBGd0NH0AathgyQwUMGJMDGM4,1743
|
|
74
|
+
adam/commands/head.py,sha256=NeR1xRpmbyUQI5IgRE-zdWyyjs9C-C8E-g0WNulZ2Ck,1284
|
|
73
75
|
adam/commands/help.py,sha256=SYaJL-7mApfSlfkDvY2uKl7onyr54ntDmMSQ18sfaZw,1886
|
|
74
76
|
adam/commands/intermediate_command.py,sha256=vT802djwMyMgcidZufa98GnFiWHgmNKU1XFp7Y_ovhU,1784
|
|
75
77
|
adam/commands/issues.py,sha256=5evrVBzc4sCMHwQ9LmuGAgoPBINr-OCa9FZMJVJDwH8,1431
|
|
76
78
|
adam/commands/kubectl.py,sha256=kCXIl_9vNDW6CBirCeowQjJ2UhidlCEDBP8XOVIloF8,993
|
|
77
79
|
adam/commands/login.py,sha256=rY8P3wpWZOBN-68QRZfDfBvd0wjLUkwbTNPduqAOoVA,2073
|
|
78
|
-
adam/commands/
|
|
79
|
-
adam/commands/
|
|
80
|
-
adam/commands/nodetool.py,sha256=kVbE-XlqcICoH2Kcye13645rATI75HvG0cvtzGFEW8E,2028
|
|
80
|
+
adam/commands/ls.py,sha256=vUQrOaptKcC9HHzQaL_82h9bWoUxwGu0YSg8YKOwrBI,1282
|
|
81
|
+
adam/commands/nodetool.py,sha256=3z55UTx7ZKPLwrgZXAUL9nFTKZtEx-jxH6y_gCJdue0,2024
|
|
81
82
|
adam/commands/nodetool_commands.py,sha256=5IgWC3rmeDD1cgwqQjiiWzi-wJpJ3n_8pAzz_9phXuk,2635
|
|
82
83
|
adam/commands/param_get.py,sha256=3IpAn4_T-_NlSkEXyv0jkBJ_aHE-e9hdY5YVaZlIKBI,1357
|
|
83
84
|
adam/commands/param_set.py,sha256=v1oKyr7Efv7YpnwuXj-dm4M_vo9F1FNIdQHSb6F_t1o,1351
|
|
84
|
-
adam/commands/preview_table.py,sha256=
|
|
85
|
+
adam/commands/preview_table.py,sha256=5iE5SLVUlgZdfQrUqvvlm4j4PaqoyAATRedwoQ1uNRs,1251
|
|
85
86
|
adam/commands/pwd.py,sha256=aQKMHEONxTM2h1nv3dT9rj6cUl3WUZC6SD8nrfNYrZI,1427
|
|
86
|
-
adam/commands/
|
|
87
|
-
adam/commands/
|
|
87
|
+
adam/commands/restart_cluster.py,sha256=uY7z5lRsNR7lWyoXSwqUwYPVmTpZfsYiu9dkz2Txaas,1609
|
|
88
|
+
adam/commands/restart_node.py,sha256=TDykeAxNT4avVcrrAisFKly9ZvP0kV2Nhev0II_7Tec,1598
|
|
89
|
+
adam/commands/restart_nodes.py,sha256=PIbTPDBF1jY9Rk7QL_-IfNhOZaUrdNmCLhhIOPxAE28,1653
|
|
88
90
|
adam/commands/rollout.py,sha256=BmlvnVffPGCERfXxdJJFnxtU3yDILp5016N7C-EWCOE,3032
|
|
89
91
|
adam/commands/shell.py,sha256=UQs4TEIDiZOjJrVsZJ_O9DDtn_k3K7-ifg1ZBsJFnsU,1155
|
|
90
92
|
adam/commands/watch.py,sha256=q3kJd6YSO_ZxQ107EeIWZsW8m2X7YIGT3QPXjKloTIo,2459
|
|
@@ -105,13 +107,26 @@ adam/commands/audit/show_slow10.py,sha256=a0KU9Z6Z93eWqcrnJ-Ssz1U2488aUk62dLOZcn
|
|
|
105
107
|
adam/commands/audit/show_top10.py,sha256=7uqgkdrEfK0-ucsQrpyaa6_9i3nOpWJ116sNL-fkKUA,1033
|
|
106
108
|
adam/commands/audit/utils_show_top10.py,sha256=o37sWLEJD16eoWPM3Rql_H-noLHVMp4DH1VeTpnFeNA,2354
|
|
107
109
|
adam/commands/bash/__init__.py,sha256=K4BBF_T-6czi7uqBN-WQg3eNvG-ePJF3IPp8eyGyqmk,163
|
|
108
|
-
adam/commands/bash/bash.py,sha256=
|
|
110
|
+
adam/commands/bash/bash.py,sha256=wha8gxFoxZGnNoQjpAJzaoOYUWuz0neEKCFOKsrOYKo,1212
|
|
109
111
|
adam/commands/bash/bash_completer.py,sha256=IStUg5LLTqc3vjupw33WtXUG9zRQ37BctjDYGDyYEXU,3883
|
|
110
|
-
adam/commands/bash/utils_bash.py,sha256=
|
|
112
|
+
adam/commands/bash/utils_bash.py,sha256=Wsz0TdALDNTfgqWa7nRqh00kALvA67OqV3NdYMYy7_Q,429
|
|
113
|
+
adam/commands/cassandra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
114
|
+
adam/commands/cassandra/download_cassandra_log.py,sha256=U7pojvjdZ5YB_qW34V6GvthB4JLRAU7CxXwG0kM_vZU,1643
|
|
115
|
+
adam/commands/cassandra/nodetool.py,sha256=bM3VSA66TLhbFOqUV9wKeaonqumFtkxrRHGooWtl278,2034
|
|
116
|
+
adam/commands/cassandra/nodetool_commands.py,sha256=5IgWC3rmeDD1cgwqQjiiWzi-wJpJ3n_8pAzz_9phXuk,2635
|
|
117
|
+
adam/commands/cassandra/restart_cluster.py,sha256=uY7z5lRsNR7lWyoXSwqUwYPVmTpZfsYiu9dkz2Txaas,1609
|
|
118
|
+
adam/commands/cassandra/restart_node.py,sha256=TDykeAxNT4avVcrrAisFKly9ZvP0kV2Nhev0II_7Tec,1598
|
|
119
|
+
adam/commands/cassandra/restart_nodes.py,sha256=PIbTPDBF1jY9Rk7QL_-IfNhOZaUrdNmCLhhIOPxAE28,1653
|
|
120
|
+
adam/commands/cassandra/rollout.py,sha256=BmlvnVffPGCERfXxdJJFnxtU3yDILp5016N7C-EWCOE,3032
|
|
111
121
|
adam/commands/cql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
112
|
-
adam/commands/cql/
|
|
122
|
+
adam/commands/cql/alter_tables.py,sha256=igFeIhvanSTUSRZOtZxdR7E4a8G4Mi_h7vTnUS5aiuA,3217
|
|
123
|
+
adam/commands/cql/completions_c.py,sha256=BF-T79HiI0DhmuhckdF41_J3STWErIvRl9QkmWln6Zw,1634
|
|
113
124
|
adam/commands/cql/cqlsh.py,sha256=UpMQlCabsRwICebd37S655lRlPekHuv_dlXExlqNJ4k,2164
|
|
114
|
-
adam/commands/cql/utils_cql.py,sha256
|
|
125
|
+
adam/commands/cql/utils_cql.py,sha256=fMlJ2OzLqubnSBOlO10TVs0BokubvcHYK6NzZWBqDPw,11738
|
|
126
|
+
adam/commands/debug/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
127
|
+
adam/commands/debug/debug.py,sha256=q2RtMKZ0OH-O3suY6rrSmiRXn_6nyGBNk49G2Y9vW4I,685
|
|
128
|
+
adam/commands/debug/debug_completes.py,sha256=jn1KxwF88YV8S0DUHSTFdhww091GfIxV9Qmp98uU7Zs,1161
|
|
129
|
+
adam/commands/debug/debug_timings.py,sha256=BBo0G_ylEdyWRinYRTP41y8fs6vXw4juxIjzW6Y0Q3k,1143
|
|
115
130
|
adam/commands/deploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
116
131
|
adam/commands/deploy/code_start.py,sha256=0h8AIPjThC7uxa4HVkYMdC-7qCNXk0QXO1zDrzIOA4s,1335
|
|
117
132
|
adam/commands/deploy/code_stop.py,sha256=R9zvNVD4NLUD3J6ktZ53Rsalzn-t0ZxEpeyOoiizfgU,1153
|
|
@@ -132,7 +147,7 @@ adam/commands/devices/device_auit_log.py,sha256=kOP5QwDixwVPupd1A0PG2RY0fq_aeEdx
|
|
|
132
147
|
adam/commands/devices/device_cass.py,sha256=45tEDKETZF20Bj3lPyFLkcJ7VDmGVB8mVtBWq8YGcps,6754
|
|
133
148
|
adam/commands/devices/device_export.py,sha256=vaKpGtAhBpmBACw_bP7RwarWQoloUofRyfpEbjidSzE,2998
|
|
134
149
|
adam/commands/devices/device_postgres.py,sha256=u-A4uE_jN-3mqbwT9Oc51iEl3RERs10PWrbPvW9lT5U,5823
|
|
135
|
-
adam/commands/devices/devices.py,sha256
|
|
150
|
+
adam/commands/devices/devices.py,sha256=Gm3rqrWdooiu9Wp7gwQx5Rk0JYI1eH7Zs0fQ4j7Fdj0,961
|
|
136
151
|
adam/commands/export/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
137
152
|
adam/commands/export/clean_up_all_export_sessions.py,sha256=YpGBrOMYY2n_G-fQMpJPZSEHIC9zArWayYWbaOHOkY8,1161
|
|
138
153
|
adam/commands/export/clean_up_export_sessions.py,sha256=AaYaMG8x0lRCzOs8-vAH1J76Y-iLX1QOkwC4rMu8nXw,1328
|
|
@@ -143,10 +158,10 @@ adam/commands/export/drop_export_databases.py,sha256=WzOm4Ykf1O_ZRjF8oZn_PaKTuIz
|
|
|
143
158
|
adam/commands/export/export.py,sha256=MaEPS_QKmI9SGnLbwJRNKguk4ODx-YsbAziUYjf0_Dw,1293
|
|
144
159
|
adam/commands/export/export_databases.py,sha256=gI8OMwYup9K-AO13F-dQHNhH0o7NyXAZyRWgbVJMjw4,8240
|
|
145
160
|
adam/commands/export/export_select.py,sha256=tfy6JYEobbJ86-HRd5I02OnRqB_xEVtSIQaPYK6UThQ,984
|
|
146
|
-
adam/commands/export/export_sessions.py,sha256=
|
|
161
|
+
adam/commands/export/export_sessions.py,sha256=WLW40Au7bD4ygEUyu4wOR_fJYK1bjMlexq1GDPt6dOA,7425
|
|
147
162
|
adam/commands/export/export_use.py,sha256=H7F43ub944sCPxwd2Z0KpDiUhACg049BBak3uhQcT68,1412
|
|
148
163
|
adam/commands/export/export_x_select.py,sha256=kHDOd_RIz3JucXE-RGNpX9eBVaaBzwefEok5pdcroAM,1656
|
|
149
|
-
adam/commands/export/exporter.py,sha256=
|
|
164
|
+
adam/commands/export/exporter.py,sha256=eAD2CJO30DAYB4zwgdBtKUP4tu9xt8gRMGk8wnYoi64,15236
|
|
150
165
|
adam/commands/export/import_files.py,sha256=nSgez-i1tO8sPQV4mlfplFy-cRBC3ETCJi-oU_EBnaY,1629
|
|
151
166
|
adam/commands/export/import_session.py,sha256=qv2wlzNkUu-lm7apBAbwf8rImnsyOvRpxGPhsOmCzvQ,1644
|
|
152
167
|
adam/commands/export/importer.py,sha256=QI_SH3PvIJWQtC8wo5cjz_0IEZ1ts760zGazXw2Kj4A,2726
|
|
@@ -160,14 +175,21 @@ adam/commands/export/utils_export.py,sha256=c3gMuQq8mvhwdG7BcK14_0NAQgifAaT97R0O
|
|
|
160
175
|
adam/commands/medusa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
161
176
|
adam/commands/medusa/medusa.py,sha256=Ey2kJpoKqPFP6m623B3ciMoLur5SVcHEBYsvW7G7aAY,958
|
|
162
177
|
adam/commands/medusa/medusa_backup.py,sha256=n-caJjd3WObm2tplVKUG-GahWoOwDS2pk_MZKQl0S7Q,1812
|
|
163
|
-
adam/commands/medusa/medusa_restore.py,sha256=
|
|
178
|
+
adam/commands/medusa/medusa_restore.py,sha256=uIeCrFU5SHajUrG1ALdXukTqmPtF0SWkKP1cJdAjNJ0,2945
|
|
164
179
|
adam/commands/medusa/medusa_show_backupjobs.py,sha256=rYP5r_NXAQcWrsstv4UngAb4gbQ8xOuyH9EFs1K00hA,1795
|
|
165
180
|
adam/commands/medusa/medusa_show_restorejobs.py,sha256=rgNg-fy0EbTBd2PghOM-w16PrtqL9QCE0Z0vhIcK8CE,1584
|
|
166
181
|
adam/commands/medusa/utils_medusa.py,sha256=7uwIFJDGYBATnl46coO24tGw4a-07mVLB82Os4pTkKo,594
|
|
182
|
+
adam/commands/os/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
183
|
+
adam/commands/os/cat.py,sha256=_h8V1g57zKCeSeE7MVuqCC3k90_q3fd19FvdvCP8Q9g,1278
|
|
184
|
+
adam/commands/os/download_file.py,sha256=xY5-o1cKhIvToVFz8iT3kcU5zBuIiOdPcGQz3oENnak,1839
|
|
185
|
+
adam/commands/os/find_files.py,sha256=2yx-RhOHvok0y0wxYf-OChWghEQc_pnp3B_nASt33zk,1480
|
|
186
|
+
adam/commands/os/find_processes.py,sha256=Ta1l5zddaazoWjaKZb8LRa4sfemr8HbOAdlLXNWBGrM,2908
|
|
187
|
+
adam/commands/os/head.py,sha256=NeR1xRpmbyUQI5IgRE-zdWyyjs9C-C8E-g0WNulZ2Ck,1284
|
|
188
|
+
adam/commands/os/shell.py,sha256=UQs4TEIDiZOjJrVsZJ_O9DDtn_k3K7-ifg1ZBsJFnsU,1155
|
|
167
189
|
adam/commands/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
168
190
|
adam/commands/postgres/completions_p.py,sha256=I4E88nKBzSegm0EY0qRcQq4pkz4iEQnS48CFXK9AXYU,727
|
|
169
191
|
adam/commands/postgres/postgres.py,sha256=kfqFYdcEdev8p9yjAxYXsTzC3hKrazge2zPBXHF37uw,3311
|
|
170
|
-
adam/commands/postgres/postgres_databases.py,sha256=
|
|
192
|
+
adam/commands/postgres/postgres_databases.py,sha256=e0AbF_tVtd91fZgt_Pw9W0H35uZ0bllok9fc3xVkb9Y,11305
|
|
171
193
|
adam/commands/postgres/postgres_ls.py,sha256=yT-V1mGnvImaIr4s75FUsV5klcrOB7HHJwWbY6h1Kpk,1111
|
|
172
194
|
adam/commands/postgres/postgres_preview.py,sha256=Bmw3YC98tFdjUx2CRHOakcvLHCOLtEiKxvNDjlDoRo0,1174
|
|
173
195
|
adam/commands/postgres/utils_postgres.py,sha256=XpcpX6ht_YsXgsvh-0UPZhaVmhu5oEN_k7X0LO6k7-E,2434
|
|
@@ -198,15 +220,17 @@ adam/commands/show/show_adam.py,sha256=zmzgIvWo9hg0v6YyA26N-xGZipVome22AtrZ9iI6o
|
|
|
198
220
|
adam/commands/show/show_cassandra_repairs.py,sha256=ygdUkiFgvaYxTEoJaJEONfpDOEzZLOPMXz1n_VZaiwc,1306
|
|
199
221
|
adam/commands/show/show_cassandra_status.py,sha256=CM6VgfUaZ1TQRpV6lXWt2UshQ8KVeeBglP2i10Lh1eU,5366
|
|
200
222
|
adam/commands/show/show_cassandra_version.py,sha256=O-vTwnK5mSyhFNRDGQ2c-3YNAbW0TZo1pndvD6kMRMo,1144
|
|
201
|
-
adam/commands/show/show_cli_commands.py,sha256=
|
|
223
|
+
adam/commands/show/show_cli_commands.py,sha256=G3yT2UcreR05aT9OgU_BZnwZQ5S5mX8wyCLmNf_W77o,1894
|
|
202
224
|
adam/commands/show/show_host.py,sha256=b7UrC_n9qRp9jHuQqint1YDEmBbC2dZUjHr59Wff-nM,868
|
|
203
225
|
adam/commands/show/show_login.py,sha256=l5vwFvNQ9WcppSJU_f6xVKGznz32OYd76EImFdR0xEo,1816
|
|
204
226
|
adam/commands/show/show_params.py,sha256=6rM9IgHusa5MrqLdHOBzBMOh1mOnlkFDbZeFGdXLnKk,939
|
|
205
227
|
adam/commands/show/show_processes.py,sha256=bkdFF8fvnNCZ1YTe1ucxtKDTt40w1lLOHbx8FcshyEI,2378
|
|
206
228
|
adam/commands/show/show_storage.py,sha256=AfqOn9ypo4G762aN8a5ZWW4IUpPDehM6R3QByGCpMFk,1734
|
|
207
229
|
adam/sql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
208
|
-
adam/sql/
|
|
230
|
+
adam/sql/async_executor.py,sha256=-nf-ESyhJ9MMWZF7YtSeyvv_e7jVTGi6Ui3DK5bAC9Y,1681
|
|
231
|
+
adam/sql/lark_completer.py,sha256=_6L8Y_IqTd02tbR4wmlxlXCDPe_167wGvnyHFaVMhog,12659
|
|
209
232
|
adam/sql/lark_parser.py,sha256=oNuPKfVTS1QBJ0wB3OXhBydmzgdCDED3LAheRM5cbiM,21378
|
|
233
|
+
adam/sql/qingl.lark,sha256=HO0C5PropRKwxJ6sO940-bLEo5UTyRDw_wKNrTqIw9M,30643
|
|
210
234
|
adam/sql/sql_completer.py,sha256=RO-S4OiBuDPUL8EWiymB8JexIwgwNXx1QzErDxuL3y4,3939
|
|
211
235
|
adam/sql/sql_state_machine.py,sha256=3m8JsIg_tojwaHY5AdPl6UEE4ZnB5hbhOOApFfozhVo,39144
|
|
212
236
|
adam/sql/term_completer.py,sha256=HZjOV4fEV9LraoMjkk8lHxNvzRtSIYsGUJhSMOhuoHY,2599
|
|
@@ -221,18 +245,18 @@ adam/sso/idp_login.py,sha256=QAtCUeDTVWliJy40RK_oac8Vgybr13xH8wzeBoxPaa8,1754
|
|
|
221
245
|
adam/sso/idp_session.py,sha256=9BUHNRf70u4rVKrVY1HKPOEmOviXvkjam8WJxmXSKIM,1735
|
|
222
246
|
adam/sso/sso_config.py,sha256=5N8WZgIJQBtHUy585XLRWKjpU87_v6QluyNK9E27D5s,2459
|
|
223
247
|
adam/utils_k8s/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
224
|
-
adam/utils_k8s/app_clusters.py,sha256=
|
|
225
|
-
adam/utils_k8s/app_pods.py,sha256=
|
|
226
|
-
adam/utils_k8s/cassandra_clusters.py,sha256=
|
|
227
|
-
adam/utils_k8s/cassandra_nodes.py,sha256=
|
|
248
|
+
adam/utils_k8s/app_clusters.py,sha256=UGu0W_7Gk6k1cGt4rbscuk3BRm0-oz3ibEK7roVyJB0,1203
|
|
249
|
+
adam/utils_k8s/app_pods.py,sha256=9bYIA9We0l_nkxOeVDxHzdDNpb8RaRp6nqQEKsW-BYo,1404
|
|
250
|
+
adam/utils_k8s/cassandra_clusters.py,sha256=1Pk3sfMDy7_HWue1_XotAOKn3dTy0RKPuIyyOxo0oLU,1891
|
|
251
|
+
adam/utils_k8s/cassandra_nodes.py,sha256=z_CaYqeiEC0avEtFK3QRO-MXaN3KFMKrG9NVO3NN6MI,1634
|
|
228
252
|
adam/utils_k8s/config_maps.py,sha256=vc9A-2D1-1mindCMFL1wuysDOXb0RCl4BdjC6B6usXI,1194
|
|
229
253
|
adam/utils_k8s/custom_resources.py,sha256=95zVZchFtFWGZ_P-jLaSMl6WYTObn7PqeTLxZ_HKoEo,7599
|
|
230
254
|
adam/utils_k8s/deployment.py,sha256=SLhnMm5GMXwEldj2OupSFBUsvNjynwSNrv5tIDvLMrc,2921
|
|
231
255
|
adam/utils_k8s/ingresses.py,sha256=q8nJTIoxa_dVrGMl1HS5yTS_11jLNBAnWlc2ZishMEE,3458
|
|
232
256
|
adam/utils_k8s/jobs.py,sha256=HbUBNXcKcuXaNzc8NmqR_Sq35yHQ_qeQtiQFFM-J2QY,2534
|
|
233
257
|
adam/utils_k8s/k8s.py,sha256=5LpIGIZH1-lrkS275zgjY6i_HEA5ZXmK_pcCoqMWK6g,3577
|
|
234
|
-
adam/utils_k8s/kube_context.py,sha256=
|
|
235
|
-
adam/utils_k8s/pods.py,sha256=
|
|
258
|
+
adam/utils_k8s/kube_context.py,sha256=SEaRhlLNniEflHtMjYS_7lArvOQJUGPe-d4KTCxzD9U,3204
|
|
259
|
+
adam/utils_k8s/pods.py,sha256=PoGbA3UT-1TzNHm__HRCs2gPVUWNz_HdB9WQWWW5bbM,13504
|
|
236
260
|
adam/utils_k8s/secrets.py,sha256=xnqRSumCIcPaASDcErzxjx1BCE-qJkPoG5wIP7YHzIo,2430
|
|
237
261
|
adam/utils_k8s/service_accounts.py,sha256=OF1-UwWupUAvn_rqNNTWsF3BWYgaLiGTJfinn8sreog,6342
|
|
238
262
|
adam/utils_k8s/services.py,sha256=7K6CxvYntbCsRjTZVcuYiBb5WPH7A5CTWTlUGvaVDRg,3154
|
|
@@ -241,13 +265,13 @@ adam/utils_k8s/volumes.py,sha256=RIBmlOSWM3V3QVXLCFT0owVOyh4rGG1ETp521a-6ndo,113
|
|
|
241
265
|
adam/utils_repl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
242
266
|
adam/utils_repl/appendable_completer.py,sha256=byLO9pZXExi13i6-fKY6gNzK-v0RtxIQtFYHdwdUbLE,158
|
|
243
267
|
adam/utils_repl/automata_completer.py,sha256=LJP_2WHHR7AtjX00MJ59VGQEL3t0XS-qYnDmMaZe-Tk,1641
|
|
244
|
-
adam/utils_repl/repl_completer.py,sha256
|
|
268
|
+
adam/utils_repl/repl_completer.py,sha256=-9J0yJejnX8CzY0ZVpNuxpZHsolfWpnZmQDneXkeBbg,3392
|
|
245
269
|
adam/utils_repl/state_machine.py,sha256=kO4_oSi_M53f3QQjINzzb2VFptjbnqX3KRC0G8LqqeA,5426
|
|
246
270
|
teddy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
247
271
|
teddy/lark_parser.py,sha256=1ZasiCM94C0nOA4HFJX7uMj0h2TReCMqLd1Wx9C50uA,14701
|
|
248
272
|
teddy/lark_parser2.py,sha256=tXM6D8BimgG4FK5ANYS2K8MoATdcYed5QOKXivbPQHw,21499
|
|
249
|
-
kaqing-2.0.
|
|
250
|
-
kaqing-2.0.
|
|
251
|
-
kaqing-2.0.
|
|
252
|
-
kaqing-2.0.
|
|
253
|
-
kaqing-2.0.
|
|
273
|
+
kaqing-2.0.200.dist-info/METADATA,sha256=ahTNmmx8YUVR3kGo0eus5-23PV6zTTg1XlMqPrO17n8,133
|
|
274
|
+
kaqing-2.0.200.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
275
|
+
kaqing-2.0.200.dist-info/entry_points.txt,sha256=SkzhuQJUWsXOzHeZ5TgQ2c3_g53UGK23zzJU_JTZOZI,39
|
|
276
|
+
kaqing-2.0.200.dist-info/top_level.txt,sha256=spQlE6mz0lPv3DfQLw8FenXyU0O-P8pi_FUCjdI2H9s,11
|
|
277
|
+
kaqing-2.0.200.dist-info/RECORD,,
|
adam/commands/logs.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
from adam.commands.command import Command
|
|
2
|
-
from adam.config import Config
|
|
3
|
-
from adam.utils_k8s.cassandra_nodes import CassandraNodes
|
|
4
|
-
from adam.repl_state import ReplState, RequiredState
|
|
5
|
-
|
|
6
|
-
class Logs(Command):
|
|
7
|
-
COMMAND = 'logs'
|
|
8
|
-
|
|
9
|
-
# the singleton pattern
|
|
10
|
-
def __new__(cls, *args, **kwargs):
|
|
11
|
-
if not hasattr(cls, 'instance'): cls.instance = super(Logs, cls).__new__(cls)
|
|
12
|
-
|
|
13
|
-
return cls.instance
|
|
14
|
-
|
|
15
|
-
def __init__(self, successor: Command=None):
|
|
16
|
-
super().__init__(successor)
|
|
17
|
-
|
|
18
|
-
def command(self):
|
|
19
|
-
return Logs.COMMAND
|
|
20
|
-
|
|
21
|
-
def required(self):
|
|
22
|
-
return RequiredState.POD
|
|
23
|
-
|
|
24
|
-
def run(self, cmd: str, state: ReplState):
|
|
25
|
-
if not(args := self.args(cmd)):
|
|
26
|
-
return super().run(cmd, state)
|
|
27
|
-
|
|
28
|
-
with self.validate(args, state) as (args, state):
|
|
29
|
-
path = Config().get('logs.path', '/c3/cassandra/logs/system.log')
|
|
30
|
-
return CassandraNodes.exec(state.pod, state.namespace, f'cat {path}')
|
|
31
|
-
|
|
32
|
-
def completion(self, _: ReplState):
|
|
33
|
-
# available only on cli
|
|
34
|
-
return {}
|
|
35
|
-
|
|
36
|
-
def help(self, _: ReplState):
|
|
37
|
-
return f'{Logs.COMMAND}\t show cassandra system log'
|
adam/commands/report.py
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import click
|
|
2
|
-
import json
|
|
3
|
-
|
|
4
|
-
from adam.checks.check_result import CheckResult
|
|
5
|
-
from adam.checks.check_utils import run_checks
|
|
6
|
-
from adam.commands.command import Command
|
|
7
|
-
from adam.repl_state import ReplState
|
|
8
|
-
from adam.utils import log2
|
|
9
|
-
|
|
10
|
-
class Report(Command):
|
|
11
|
-
COMMAND = 'report'
|
|
12
|
-
|
|
13
|
-
# the singleton pattern
|
|
14
|
-
def __new__(cls, *args, **kwargs):
|
|
15
|
-
if not hasattr(cls, 'instance'): cls.instance = super(Report, cls).__new__(cls)
|
|
16
|
-
|
|
17
|
-
return cls.instance
|
|
18
|
-
|
|
19
|
-
def __init__(self, successor: Command=None):
|
|
20
|
-
super().__init__(successor)
|
|
21
|
-
|
|
22
|
-
def command(self):
|
|
23
|
-
return Report.COMMAND
|
|
24
|
-
|
|
25
|
-
def required(self):
|
|
26
|
-
return ReplState.NON_L
|
|
27
|
-
|
|
28
|
-
def run(self, cmd: str, state: ReplState):
|
|
29
|
-
if not(args := self.args(cmd)):
|
|
30
|
-
return super().run(cmd, state)
|
|
31
|
-
|
|
32
|
-
with self.validate(args, state) as (args, state):
|
|
33
|
-
output: dict[str, any] = {}
|
|
34
|
-
|
|
35
|
-
if state.in_repl:
|
|
36
|
-
args, show = Command.extract_options(args, ['-s', '--show'])
|
|
37
|
-
|
|
38
|
-
args, redirect = Command.extract_options(args, ['>'])
|
|
39
|
-
if not redirect or not args:
|
|
40
|
-
log2('Please specify file name: e.g. report > /tmp/report.log')
|
|
41
|
-
return 'no-report-destination'
|
|
42
|
-
|
|
43
|
-
results = run_checks(state.sts, state.namespace, state.pod, show_out=show)
|
|
44
|
-
output = CheckResult.report(results)
|
|
45
|
-
with open(args[0], "w") as json_file:
|
|
46
|
-
json.dump(output, json_file, indent=2)
|
|
47
|
-
log2(f'Report stored in {args[0]}.')
|
|
48
|
-
else:
|
|
49
|
-
args, show = Command.extract_options(args, ['-s', '--show'])
|
|
50
|
-
|
|
51
|
-
results = run_checks(state.sts, state.namespace, state.pod, show_out=show)
|
|
52
|
-
output = CheckResult.report(results)
|
|
53
|
-
click.echo(json.dumps(output, indent=2))
|
|
54
|
-
|
|
55
|
-
return output
|
|
56
|
-
|
|
57
|
-
def completion(self, state: ReplState):
|
|
58
|
-
return super().completion(state, {">": None})
|
|
59
|
-
|
|
60
|
-
def help(self, _: ReplState):
|
|
61
|
-
return f"{Report.COMMAND} > <file-name>\t generate report"
|
adam/commands/restart.py
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
from adam.commands import extract_options
|
|
2
|
-
from adam.commands.command import Command
|
|
3
|
-
from adam.utils_k8s.pods import Pods
|
|
4
|
-
from adam.utils_k8s.statefulsets import StatefulSets
|
|
5
|
-
from adam.repl_state import ReplState, RequiredState
|
|
6
|
-
from adam.utils import log2
|
|
7
|
-
|
|
8
|
-
class Restart(Command):
|
|
9
|
-
COMMAND = 'restart'
|
|
10
|
-
|
|
11
|
-
# the singleton pattern
|
|
12
|
-
def __new__(cls, *args, **kwargs):
|
|
13
|
-
if not hasattr(cls, 'instance'): cls.instance = super(Restart, cls).__new__(cls)
|
|
14
|
-
|
|
15
|
-
return cls.instance
|
|
16
|
-
|
|
17
|
-
def __init__(self, successor: Command=None):
|
|
18
|
-
super().__init__(successor)
|
|
19
|
-
|
|
20
|
-
def command(self):
|
|
21
|
-
return Restart.COMMAND
|
|
22
|
-
|
|
23
|
-
def required(self):
|
|
24
|
-
return RequiredState.CLUSTER_OR_POD
|
|
25
|
-
|
|
26
|
-
def run(self, cmd: str, state: ReplState):
|
|
27
|
-
if not(args := self.args(cmd)):
|
|
28
|
-
return super().run(cmd, state)
|
|
29
|
-
|
|
30
|
-
with self.validate(args, state) as (args, state):
|
|
31
|
-
with extract_options(args, '--force') as (args, forced):
|
|
32
|
-
if not args:
|
|
33
|
-
if state.pod:
|
|
34
|
-
log2(f'Restarting {state.pod}...')
|
|
35
|
-
Pods.delete(state.pod, state.namespace)
|
|
36
|
-
else:
|
|
37
|
-
if not forced:
|
|
38
|
-
log2('Please add --force for restarting all nodes in a cluster.')
|
|
39
|
-
return 'force-needed'
|
|
40
|
-
|
|
41
|
-
log2(f'Restarting all pods from {state.sts}...')
|
|
42
|
-
for pod_name in StatefulSets.pod_names(state.sts, state.namespace):
|
|
43
|
-
Pods.delete(pod_name, state.namespace)
|
|
44
|
-
else:
|
|
45
|
-
for arg in args:
|
|
46
|
-
Pods.delete(arg, state.namespace)
|
|
47
|
-
|
|
48
|
-
return state
|
|
49
|
-
|
|
50
|
-
def completion(self, state: ReplState):
|
|
51
|
-
if super().completion(state):
|
|
52
|
-
if state.pod:
|
|
53
|
-
return {Restart.COMMAND: None}
|
|
54
|
-
elif state.sts:
|
|
55
|
-
return {Restart.COMMAND: {p: None for p in StatefulSets.pod_names(state.sts, state.namespace)}}
|
|
56
|
-
|
|
57
|
-
return {}
|
|
58
|
-
|
|
59
|
-
def help(self, _: ReplState):
|
|
60
|
-
return f"{Restart.COMMAND} [<host-id>] [--force]\t restart the node you're in or all the nodes in the cluster"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|