|
5 | 5 |
|
6 | 6 | | Method | Request Type | Response Type | Description |
|
7 | 7 | | ------ | ------------ | ------------- | ----------- |
|
8 |
| -| AuthEnable | `AuthEnableRequest` | `AuthEnableResponse` | AuthEnable enables authentication. | |
9 |
| -| AuthDisable | `AuthDisableRequest` | `AuthDisableResponse` | AuthDisable disables authentication. | |
10 |
| -| Authenticate | `AuthenticateRequest` | `AuthenticateResponse` | Authenticate processes authenticate request. | |
11 |
| -| UserAdd | `AuthUserAddRequest` | `AuthUserAddResponse` | UserAdd adds a new user. | |
12 |
| -| UserGet | `AuthUserGetRequest` | `AuthUserGetResponse` | UserGet gets a detailed information of a user or lists entire users. | |
13 |
| -| UserDelete | `AuthUserDeleteRequest` | `AuthUserDeleteResponse` | UserDelete deletes a specified user. | |
14 |
| -| UserChangePassword | `AuthUserChangePasswordRequest` | `AuthUserChangePasswordResponse` | UserChangePassword changes password of a specified user. | |
15 |
| -| UserGrant | `AuthUserGrantRequest` | `AuthUserGrantResponse` | UserGrant grants a role to a specified user. | |
16 |
| -| UserRevoke | `AuthUserRevokeRequest` | `AuthUserRevokeResponse` | UserRevoke revokes a role of specified user. | |
17 |
| -| RoleAdd | `AuthRoleAddRequest` | `AuthRoleAddResponse` | RoleAdd adds a new role. | |
18 |
| -| RoleGet | `AuthRoleGetRequest` | `AuthRoleGetResponse` | RoleGet gets a detailed information of a role or lists entire roles. | |
19 |
| -| RoleDelete | `AuthRoleDeleteRequest` | `AuthRoleDeleteResponse` | RoleDelete deletes a specified role. | |
20 |
| -| RoleGrant | `AuthRoleGrantRequest` | `AuthRoleGrantResponse` | RoleGrant grants a permission of a specified key or range to a specified role. | |
21 |
| -| RoleRevoke | `AuthRoleRevokeRequest` | `AuthRoleRevokeResponse` | RoleRevoke revokes a key or range permission of a specified role. | |
| 8 | +| AuthEnable | AuthEnableRequest | AuthEnableResponse | AuthEnable enables authentication. | |
| 9 | +| AuthDisable | AuthDisableRequest | AuthDisableResponse | AuthDisable disables authentication. | |
| 10 | +| Authenticate | AuthenticateRequest | AuthenticateResponse | Authenticate processes authenticate request. | |
| 11 | +| UserAdd | AuthUserAddRequest | AuthUserAddResponse | UserAdd adds a new user. | |
| 12 | +| UserGet | AuthUserGetRequest | AuthUserGetResponse | UserGet gets a detailed information of a user or lists entire users. | |
| 13 | +| UserDelete | AuthUserDeleteRequest | AuthUserDeleteResponse | UserDelete deletes a specified user. | |
| 14 | +| UserChangePassword | AuthUserChangePasswordRequest | AuthUserChangePasswordResponse | UserChangePassword changes password of a specified user. | |
| 15 | +| UserGrant | AuthUserGrantRequest | AuthUserGrantResponse | UserGrant grants a role to a specified user. | |
| 16 | +| UserRevoke | AuthUserRevokeRequest | AuthUserRevokeResponse | UserRevoke revokes a role of specified user. | |
| 17 | +| RoleAdd | AuthRoleAddRequest | AuthRoleAddResponse | RoleAdd adds a new role. | |
| 18 | +| RoleGet | AuthRoleGetRequest | AuthRoleGetResponse | RoleGet gets a detailed information of a role or lists entire roles. | |
| 19 | +| RoleDelete | AuthRoleDeleteRequest | AuthRoleDeleteResponse | RoleDelete deletes a specified role. | |
| 20 | +| RoleGrant | AuthRoleGrantRequest | AuthRoleGrantResponse | RoleGrant grants a permission of a specified key or range to a specified role. | |
| 21 | +| RoleRevoke | AuthRoleRevokeRequest | AuthRoleRevokeResponse | RoleRevoke revokes a key or range permission of a specified role. | |
22 | 22 |
|
23 | 23 |
|
24 | 24 | <br>
|
|
27 | 27 |
|
28 | 28 | | Method | Request Type | Response Type | Description |
|
29 | 29 | | ------ | ------------ | ------------- | ----------- |
|
30 |
| -| MemberAdd | `MemberAddRequest` | `MemberAddResponse` | MemberAdd adds a member into the cluster. | |
31 |
| -| MemberRemove | `MemberRemoveRequest` | `MemberRemoveResponse` | MemberRemove removes an existing member from the cluster. | |
32 |
| -| MemberUpdate | `MemberUpdateRequest` | `MemberUpdateResponse` | MemberUpdate updates the member configuration. | |
33 |
| -| MemberList | `MemberListRequest` | `MemberListResponse` | MemberList lists all the members in the cluster. | |
| 30 | +| MemberAdd | MemberAddRequest | MemberAddResponse | MemberAdd adds a member into the cluster. | |
| 31 | +| MemberRemove | MemberRemoveRequest | MemberRemoveResponse | MemberRemove removes an existing member from the cluster. | |
| 32 | +| MemberUpdate | MemberUpdateRequest | MemberUpdateResponse | MemberUpdate updates the member configuration. | |
| 33 | +| MemberList | MemberListRequest | MemberListResponse | MemberList lists all the members in the cluster. | |
34 | 34 |
|
35 | 35 |
|
36 | 36 | <br>
|
|
39 | 39 |
|
40 | 40 | | Method | Request Type | Response Type | Description |
|
41 | 41 | | ------ | ------------ | ------------- | ----------- |
|
42 |
| -| Range | `RangeRequest` | `RangeResponse` | Range gets the keys in the range from the store. | |
43 |
| -| Put | `PutRequest` | `PutResponse` | Put puts the given key into the store. A put request increases the revision of the store, and generates one event in the event history. | |
44 |
| -| DeleteRange | `DeleteRangeRequest` | `DeleteRangeResponse` | Delete deletes the given range from the store. A delete request increase the revision of the store, and generates one event in the event history. | |
45 |
| -| Txn | `TxnRequest` | `TxnResponse` | Txn processes all the requests in one transaction. A txn request increases the revision of the store, and generates events with the same revision in the event history. It is not allowed to modify the same key several times within one txn. | |
46 |
| -| Compact | `CompactionRequest` | `CompactionResponse` | Compact compacts the event history in etcd. User should compact the event history periodically, or it will grow infinitely. | |
| 42 | +| Range | RangeRequest | RangeResponse | Range gets the keys in the range from the store. | |
| 43 | +| Put | PutRequest | PutResponse | Put puts the given key into the store. A put request increases the revision of the store, and generates one event in the event history. | |
| 44 | +| DeleteRange | DeleteRangeRequest | DeleteRangeResponse | Delete deletes the given range from the store. A delete request increase the revision of the store, and generates one event in the event history. | |
| 45 | +| Txn | TxnRequest | TxnResponse | Txn processes all the requests in one transaction. A txn request increases the revision of the store, and generates events with the same revision in the event history. It is not allowed to modify the same key several times within one txn. | |
| 46 | +| Compact | CompactionRequest | CompactionResponse | Compact compacts the event history in etcd. User should compact the event history periodically, or it will grow infinitely. | |
47 | 47 |
|
48 | 48 |
|
49 | 49 | <br>
|
|
52 | 52 |
|
53 | 53 | | Method | Request Type | Response Type | Description |
|
54 | 54 | | ------ | ------------ | ------------- | ----------- |
|
55 |
| -| LeaseGrant | `LeaseGrantRequest` | `LeaseGrantResponse` | LeaseGrant creates a lease. A lease has a TTL. The lease will expire if the server does not receive a keepAlive within TTL from the lease holder. All keys attached to the lease will be expired and deleted if the lease expires. The key expiration generates an event in event history. | |
56 |
| -| LeaseRevoke | `LeaseRevokeRequest` | `LeaseRevokeResponse` | LeaseRevoke revokes a lease. All the key attached to the lease will be expired and deleted. | |
57 |
| -| LeaseKeepAlive | `LeaseKeepAliveRequest` | `LeaseKeepAliveResponse` | KeepAlive keeps the lease alive. | |
| 55 | +| LeaseGrant | LeaseGrantRequest | LeaseGrantResponse | LeaseGrant creates a lease. A lease has a TTL. The lease will expire if the server does not receive a keepAlive within TTL from the lease holder. All keys attached to the lease will be expired and deleted if the lease expires. The key expiration generates an event in event history. | |
| 56 | +| LeaseRevoke | LeaseRevokeRequest | LeaseRevokeResponse | LeaseRevoke revokes a lease. All the key attached to the lease will be expired and deleted. | |
| 57 | +| LeaseKeepAlive | LeaseKeepAliveRequest | LeaseKeepAliveResponse | KeepAlive keeps the lease alive. | |
58 | 58 |
|
59 | 59 |
|
60 | 60 | <br>
|
|
63 | 63 |
|
64 | 64 | | Method | Request Type | Response Type | Description |
|
65 | 65 | | ------ | ------------ | ------------- | ----------- |
|
66 |
| -| Alarm | `AlarmRequest` | `AlarmResponse` | Alarm activates, deactivates, and queries alarms regarding cluster health. | |
67 |
| -| Status | `StatusRequest` | `StatusResponse` | Status gets the status of the member. | |
68 |
| -| Defragment | `DefragmentRequest` | `DefragmentResponse` | | |
69 |
| -| Hash | `HashRequest` | `HashResponse` | Hash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions. | |
70 |
| -| Snapshot | `SnapshotRequest` | `SnapshotResponse` | Snapshot sends a snapshot of the entire backend | |
| 66 | +| Alarm | AlarmRequest | AlarmResponse | Alarm activates, deactivates, and queries alarms regarding cluster health. | |
| 67 | +| Status | StatusRequest | StatusResponse | Status gets the status of the member. | |
| 68 | +| Defragment | DefragmentRequest | DefragmentResponse | | |
| 69 | +| Hash | HashRequest | HashResponse | Hash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions. | |
| 70 | +| Snapshot | SnapshotRequest | SnapshotResponse | Snapshot sends a snapshot of the entire backend | |
71 | 71 |
|
72 | 72 |
|
73 | 73 | <br>
|
|
76 | 76 |
|
77 | 77 | | Method | Request Type | Response Type | Description |
|
78 | 78 | | ------ | ------------ | ------------- | ----------- |
|
79 |
| -| Watch | `WatchRequest` | `WatchResponse` | Watch watches the events happening or happened. Both input and output are stream. One watch rpc can watch for multiple keys or prefixs and get a stream of events. The whole events history can be watched unless compacted. | |
| 79 | +| Watch | WatchRequest | WatchResponse | Watch watches the events happening or happened. Both input and output are stream. One watch rpc can watch for multiple keys or prefixs and get a stream of events. The whole events history can be watched unless compacted. | |
80 | 80 |
|
81 | 81 |
|
82 | 82 | <br>
|
|
0 commit comments