Class Client
A simple wrapper client for etcd v3 client.
Inheritance
System.Object
Client
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ETCD.V3
Assembly: cs.temp.dll.dll
Syntax
public class Client
Constructors
Client(String, ChannelCredentials)
new Client
Declaration
public Client(string target, ChannelCredentials credentials = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | host:port |
ChannelCredentials | credentials | Client-side channel credentials. Used for creation of a secure channel. Defualt is ChannelCredentials.Insecure |
Properties
Auth
Origin grpc etcd v3 Client for Auth
Declaration
public AuthClient Auth { get; }
Property Value
Type | Description |
---|---|
AuthClient |
Cluster
Origin grpc etcd v3 Client for Cluster
Declaration
public ClusterClient Cluster { get; }
Property Value
Type | Description |
---|---|
ClusterClient |
KV
Origin grpc etcd v3 Client for KV
Declaration
public KVClient KV { get; }
Property Value
Type | Description |
---|---|
KVClient |
Lease
Origin grpc etcd v3 Client for Lease
Declaration
public LeaseClient Lease { get; }
Property Value
Type | Description |
---|---|
LeaseClient |
Maintenance
Origin grpc etcd v3 Client for Maintenance
Declaration
public MaintenanceClient Maintenance { get; }
Property Value
Type | Description |
---|---|
MaintenanceClient |
Watch
Origin grpc etcd v3 Client for Watch
Declaration
public WatchClient Watch { get; }
Property Value
Type | Description |
---|---|
WatchClient |
Methods
Close()
Close channel.
Declaration
public void Close()
CloseAsync()
Async close channel.
Declaration
public Task CloseAsync()
Returns
Type | Description |
---|---|
Task |
NewAuthToken(String, String, Metadata)
Generate new auth token
Declaration
public void NewAuthToken(string user, string password, Metadata headers = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | user | User which for auth |
System.String | password | User password |
Metadata | headers | Headers to be sent with the call. |