Class ClusterExtensions
Inheritance
Inherited Members
Namespace: ETCD.V3
Assembly: cs.temp.dll.dll
Syntax
public static class ClusterExtensions
Methods
CreateMemberAddRequest(Client, String[])
Create MemberAddRequest.
Declaration
public static MemberAddRequest CreateMemberAddRequest(this Client client, params string[] peerURLs)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.String[] | peerURLs | peerURLs is the list of URLs the added member will use to communicate with the cluster. |
Returns
Type | Description |
---|---|
MemberAddRequest | MemberAddRequest. |
CreateMemberRemoveRequest(Client, UInt64)
Create MemberRemoveRequest.
Declaration
public static MemberRemoveRequest CreateMemberRemoveRequest(this Client client, ulong id)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.UInt64 | id | ID is the member ID of the member to remove. |
Returns
Type | Description |
---|---|
MemberRemoveRequest | MemberRemoveRequest. |
CreateMemberUpdateRequest(Client, UInt64, String[])
Create MemberUpdateRequest.
Declaration
public static MemberUpdateRequest CreateMemberUpdateRequest(this Client client, ulong id, params string[] peerURLs)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.UInt64 | id | ID is the member ID of the member to update. |
System.String[] | peerURLs | peerURLs is the new list of URLs the member will use to communicate with the cluster. |
Returns
Type | Description |
---|---|
MemberUpdateRequest | MemberUpdateRequest. |
MemberAdd(Client, String[])
MemberAdd adds a member into the cluster.
Declaration
public static MemberAddResponse MemberAdd(this Client client, params string[] peerURLs)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.String[] | peerURLs | peerURLs is the list of URLs the added member will use to communicate with the cluster. |
Returns
Type | Description |
---|---|
MemberAddResponse | The response received from the server. |
MemberAddAsync(Client, String[])
MemberAdd adds a member into the cluster.
Declaration
public static AsyncUnaryCall<MemberAddResponse> MemberAddAsync(this Client client, params string[] peerURLs)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.String[] | peerURLs | peerURLs is the list of URLs the added member will use to communicate with the cluster. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<MemberAddResponse> | The call object. |
MemberList(Client)
MemberList lists all the members in the cluster.
Declaration
public static MemberListResponse MemberList(this Client client)
Parameters
Type | Name | Description |
---|---|---|
Client | client |
Returns
Type | Description |
---|---|
MemberListResponse | The response received from the server. |
MemberListAsync(Client)
MemberList lists all the members in the cluster.
Declaration
public static AsyncUnaryCall<MemberListResponse> MemberListAsync(this Client client)
Parameters
Type | Name | Description |
---|---|---|
Client | client |
Returns
Type | Description |
---|---|
AsyncUnaryCall<MemberListResponse> | The call object. |
MemberRemove(Client, UInt64)
MemberRemove removes an existing member from the cluster.
Declaration
public static MemberRemoveResponse MemberRemove(this Client client, ulong id)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.UInt64 | id | ID is the member ID of the member to remove. |
Returns
Type | Description |
---|---|
MemberRemoveResponse | The response received from the server. |
MemberRemoveAsync(Client, UInt64)
MemberRemove removes an existing member from the cluster.
Declaration
public static AsyncUnaryCall<MemberRemoveResponse> MemberRemoveAsync(this Client client, ulong id)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.UInt64 | id | ID is the member ID of the member to remove. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<MemberRemoveResponse> | The call object. |
MemberUpdate(Client, UInt64, String[])
MemberUpdate updates the member configuration.
Declaration
public static MemberUpdateResponse MemberUpdate(this Client client, ulong id, params string[] peerURLs)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.UInt64 | id | ID is the member ID of the member to update. |
System.String[] | peerURLs | peerURLs is the new list of URLs the member will use to communicate with the cluster. |
Returns
Type | Description |
---|---|
MemberUpdateResponse | The response received from the server. |
MemberUpdateAsync(Client, UInt64, String[])
MemberUpdate updates the member configuration.
Declaration
public static AsyncUnaryCall<MemberUpdateResponse> MemberUpdateAsync(this Client client, ulong id, params string[] peerURLs)
Parameters
Type | Name | Description |
---|---|---|
Client | client | |
System.UInt64 | id | ID is the member ID of the member to update. |
System.String[] | peerURLs | peerURLs is the new list of URLs the member will use to communicate with the cluster. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<MemberUpdateResponse> | The call object. |