Repository navigation
Conversation
Register a standalone etcd datasource with get, put, and del, instance-level key browse, and ticket handling for datasources that have no catalog or schema.
|
Thanks for the contribution! That was incredibly fast. |
|
Could you share a screenshot showing an etcd query command and its results in CloudDM? |
|
Could you address these three issues? This is a static review of 6912fbc; I haven't verified them against a running etcd instance.
Please also verify the failure-result/audit path, the quoted-key round trip, and a private-CA connection when testing the fixes. |

Summary
Add a standalone etcd key-value datasource, modeled on Redis rather than a full command console.
getand rejectputanddel.Supported commands
Commands are case-insensitive, one per line. A trailing semicolon is ignored. A line starting with
#is a comment. Keys and values may be wrapped in single or double quotes.getget <key>key,value. No row when the key is missing.putput <key> <value>key,value. A missing value is stored as an empty string.deldel <key>key,deleted.deletedis0when the key is missing.Related Issues
#411
Test plan
:ds-etcd:compileJavaget, andput/delare rejectedput /demo/a hellothenget /demo/areturnshelloput /demo/a worldthengetreturnsworldput "/demo/b c" "hello world"reads back the key and value with spacesput /demo/emptythengetreturns an empty valueget /demo/missingreturns no rowdel /demo/areturnsdeleted=1, and the nextgetreturns no rowdel /demo/missingreturnsdeleted=0GETmatchesget. A trailing semicolon is ignored. A line starting with#is not executedput,get, andfoo /demo/areport an unsupported command or a missing key