fix(etcd): preserve raw key identity in browser actions
This commit is contained in:
69 files changed
+6577
-742
No files matched your search
@@ -67,6 +67,9 @@ public final class AgentProtocol {
|
||||
public static final String KV_METHOD_GET = "kv_get";
|
||||
public static final String KV_METHOD_PUT = "kv_put";
|
||||
public static final String KV_METHOD_DELETE = "kv_delete";
|
||||
public static final String KV_METHOD_RENAME = "kv_rename";
|
||||
public static final String KV_METHOD_HISTORY = "kv_history";
|
||||
public static final String KV_METHOD_STATUS = "kv_status";
|
||||
|
||||
public static final String CAPABILITY_CONNECT = "connect";
|
||||
public static final String CAPABILITY_TEST_CONNECTION = "test_connection";
|
||||
@@ -77,6 +80,10 @@ public final class AgentProtocol {
|
||||
public static final String CAPABILITY_DDL = "ddl";
|
||||
public static final String CAPABILITY_KV = "kv";
|
||||
public static final String CAPABILITY_KV_TTL = "kv_ttl";
|
||||
public static final String CAPABILITY_KV_CAS = "kv_cas";
|
||||
public static final String CAPABILITY_KV_LIST_VALUES = "kv_list_values";
|
||||
public static final String CAPABILITY_KV_STATUS = "kv_status";
|
||||
public static final String CAPABILITY_KV_HISTORY = "kv_history";
|
||||
public static final String CAPABILITY_MULTI_SESSION = "multi_session";
|
||||
|
||||
public static final List<String> CAPABILITIES = Collections.unmodifiableList(Arrays.asList(
|
||||
@@ -98,7 +105,11 @@ public final class AgentProtocol {
|
||||
CAPABILITY_TRANSACTION,
|
||||
CAPABILITY_DDL,
|
||||
CAPABILITY_KV,
|
||||
CAPABILITY_KV_TTL
|
||||
CAPABILITY_KV_TTL,
|
||||
CAPABILITY_KV_CAS,
|
||||
CAPABILITY_KV_LIST_VALUES,
|
||||
CAPABILITY_KV_STATUS,
|
||||
CAPABILITY_KV_HISTORY
|
||||
));
|
||||
|
||||
public static final List<String> COMMON_METHODS = Collections.unmodifiableList(Arrays.asList(
|
||||
@@ -171,7 +182,10 @@ public final class AgentProtocol {
|
||||
KV_METHOD_LIST_PREFIX,
|
||||
KV_METHOD_GET,
|
||||
KV_METHOD_PUT,
|
||||
KV_METHOD_DELETE
|
||||
KV_METHOD_DELETE,
|
||||
KV_METHOD_RENAME,
|
||||
KV_METHOD_HISTORY,
|
||||
KV_METHOD_STATUS
|
||||
));
|
||||
|
||||
private AgentProtocol() {
|
||||
|
||||
@@ -1,40 +1,10 @@
|
||||
{
|
||||
"protocolVersion": 1,
|
||||
"handshakeMethod": "handshake",
|
||||
"handshakeResponseFields": [
|
||||
"protocolVersion",
|
||||
"agentProtocolVersion",
|
||||
"capabilities"
|
||||
],
|
||||
"allCapabilities": [
|
||||
"connect",
|
||||
"test_connection",
|
||||
"metadata",
|
||||
"query",
|
||||
"paged_query",
|
||||
"transaction",
|
||||
"ddl",
|
||||
"kv",
|
||||
"kv_ttl"
|
||||
],
|
||||
"capabilities": [
|
||||
"connect",
|
||||
"test_connection",
|
||||
"metadata",
|
||||
"query",
|
||||
"paged_query",
|
||||
"transaction",
|
||||
"ddl"
|
||||
],
|
||||
"defaultSqlCapabilities": [
|
||||
"connect",
|
||||
"test_connection",
|
||||
"metadata",
|
||||
"query",
|
||||
"paged_query",
|
||||
"transaction",
|
||||
"ddl"
|
||||
],
|
||||
"handshakeResponseFields": ["protocolVersion", "agentProtocolVersion", "capabilities"],
|
||||
"allCapabilities": ["connect", "test_connection", "metadata", "query", "paged_query", "transaction", "ddl", "kv", "kv_ttl", "kv_cas", "kv_list_values", "kv_status", "kv_history"],
|
||||
"capabilities": ["connect", "test_connection", "metadata", "query", "paged_query", "transaction", "ddl"],
|
||||
"defaultSqlCapabilities": ["connect", "test_connection", "metadata", "query", "paged_query", "transaction", "ddl"],
|
||||
"commonMethods": [
|
||||
"handshake",
|
||||
"connect",
|
||||
@@ -69,26 +39,6 @@
|
||||
"disconnect",
|
||||
"shutdown"
|
||||
],
|
||||
"mongoLegacyMethods": [
|
||||
"list_databases",
|
||||
"list_collections",
|
||||
"find_documents",
|
||||
"find_documents_extended_json",
|
||||
"count_documents",
|
||||
"server_version",
|
||||
"create_index",
|
||||
"drop_indexes",
|
||||
"drop_collection",
|
||||
"insert_document",
|
||||
"update_document",
|
||||
"update_documents",
|
||||
"delete_document",
|
||||
"delete_documents"
|
||||
],
|
||||
"kvMethods": [
|
||||
"kv_list_prefix",
|
||||
"kv_get",
|
||||
"kv_put",
|
||||
"kv_delete"
|
||||
]
|
||||
"mongoLegacyMethods": ["list_databases", "list_collections", "find_documents", "find_documents_extended_json", "count_documents", "server_version", "create_index", "drop_indexes", "drop_collection", "insert_document", "update_document", "update_documents", "delete_document", "delete_documents"],
|
||||
"kvMethods": ["kv_list_prefix", "kv_get", "kv_put", "kv_delete", "kv_rename", "kv_history", "kv_status"]
|
||||
}
|
||||
@@ -1,43 +1,10 @@
|
||||
{
|
||||
"protocolVersion": 2,
|
||||
"handshakeMethod": "handshake",
|
||||
"handshakeResponseFields": [
|
||||
"protocolVersion",
|
||||
"agentProtocolVersion",
|
||||
"capabilities"
|
||||
],
|
||||
"allCapabilities": [
|
||||
"connect",
|
||||
"test_connection",
|
||||
"metadata",
|
||||
"query",
|
||||
"paged_query",
|
||||
"transaction",
|
||||
"ddl",
|
||||
"kv",
|
||||
"kv_ttl",
|
||||
"multi_session"
|
||||
],
|
||||
"capabilities": [
|
||||
"connect",
|
||||
"test_connection",
|
||||
"metadata",
|
||||
"query",
|
||||
"paged_query",
|
||||
"transaction",
|
||||
"ddl",
|
||||
"multi_session"
|
||||
],
|
||||
"defaultSqlCapabilities": [
|
||||
"connect",
|
||||
"test_connection",
|
||||
"metadata",
|
||||
"query",
|
||||
"paged_query",
|
||||
"transaction",
|
||||
"ddl",
|
||||
"multi_session"
|
||||
],
|
||||
"handshakeResponseFields": ["protocolVersion", "agentProtocolVersion", "capabilities"],
|
||||
"allCapabilities": ["connect", "test_connection", "metadata", "query", "paged_query", "transaction", "ddl", "kv", "kv_ttl", "kv_cas", "kv_list_values", "kv_status", "kv_history", "multi_session"],
|
||||
"capabilities": ["connect", "test_connection", "metadata", "query", "paged_query", "transaction", "ddl", "multi_session"],
|
||||
"defaultSqlCapabilities": ["connect", "test_connection", "metadata", "query", "paged_query", "transaction", "ddl", "multi_session"],
|
||||
"commonMethods": [
|
||||
"handshake",
|
||||
"connect",
|
||||
@@ -76,28 +43,8 @@
|
||||
"disconnect",
|
||||
"shutdown"
|
||||
],
|
||||
"mongoLegacyMethods": [
|
||||
"list_databases",
|
||||
"list_collections",
|
||||
"find_documents",
|
||||
"find_documents_extended_json",
|
||||
"count_documents",
|
||||
"server_version",
|
||||
"create_index",
|
||||
"drop_indexes",
|
||||
"drop_collection",
|
||||
"insert_document",
|
||||
"update_document",
|
||||
"update_documents",
|
||||
"delete_document",
|
||||
"delete_documents"
|
||||
],
|
||||
"kvMethods": [
|
||||
"kv_list_prefix",
|
||||
"kv_get",
|
||||
"kv_put",
|
||||
"kv_delete"
|
||||
],
|
||||
"mongoLegacyMethods": ["list_databases", "list_collections", "find_documents", "find_documents_extended_json", "count_documents", "server_version", "create_index", "drop_indexes", "drop_collection", "insert_document", "update_document", "update_documents", "delete_document", "delete_documents"],
|
||||
"kvMethods": ["kv_list_prefix", "kv_get", "kv_put", "kv_delete", "kv_rename", "kv_history", "kv_status"],
|
||||
"sessionField": "agentSessionId",
|
||||
"cursorSessionField": "sessionId"
|
||||
}
|
||||
Reference in new issue
Block a user