Connectors of org.wso2.ballerina.connectors.etcd package
connector ClientConnector (string etcdURL, string username, string password, string apiVersion)
etcd client connector
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
etcdURL | string | etcdURL : etcd Server URL |
username | string | etcdURL : etcd Server URL |
password | string | etcdURL : etcd Server URL |
apiVersion | string | etcdURL : etcd Server URL |
action createDir()
Create a directory
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
dir | string | name of the directory |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action deleteDir()
Delete directory
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
dir | string | name of the directory |
recursive | string | recursive=true OR recursive=false |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action deleteKey()
Delete the key
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
key | string | key to delete |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action getValue()
Get the value for given key
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
key | string | key to get the value |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action listDir()
List directory
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
dir | string | name of the directory |
recursive | string | recursive=true OR recursive=false |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action setKeyValue()
Set/Store key/value pair
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
key | string | key to set the value |
value | string | value for the key |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action updateValue()
Update the value for given key
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
key | string | key to update the value |
value | string | value for the key |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |