예제 #1
0
 /// <summary>
 /// KeyringInstall is used to install a new gossip encryption key into the cluster
 /// </summary>
 public Task <WriteResult> KeyringInstall(string key, WriteOptions q, CancellationToken ct = default(CancellationToken))
 {
     return(_client.Post("/v1/operator/keyring", new KeyringRequest()
     {
         Key = key
     }, q).Execute(ct));
 }
예제 #2
0
        public async Task <WriteResult <string> > Create(PreparedQueryDefinition query, WriteOptions q, CancellationToken ct = default(CancellationToken))
        {
            var res = await _client.Post <PreparedQueryDefinition, PreparedQueryCreationResult>("/v1/query", query, q).Execute(ct).ConfigureAwait(false);

            return(new WriteResult <string>(res, res.Response.ID));
        }