예제 #1
0
 /// <summary>
 /// ServiceRegister is used to register a new service with the local agent
 /// </summary>
 /// <param name="service">A service registration object</param>
 /// <returns>An empty write result</returns>
 public WriteResult ServiceRegister(AgentServiceRegistration service)
 {
     return(_client.CreateInWrite <AgentServiceRegistration>("/v1/agent/service/register", service).Execute());
 }
예제 #2
0
 /// <summary>
 /// Register a new catalog item
 /// </summary>
 /// <param name="reg">A catalog registration</param>
 /// <param name="q">Customized write options</param>
 /// <returns>An empty write result</returns>
 public WriteResult Register(CatalogRegistration reg, WriteOptions q)
 {
     return
         (_client.CreateInWrite <CatalogRegistration>("/v1/catalog/register", reg, q).Execute());
 }
예제 #3
0
 /// <summary>
 /// Update is used to update the rules of an existing token
 /// </summary>
 /// <param name="acl">The ACL entry to update</param>
 /// <param name="q">Customized write options</param>
 /// <returns>An empty write result</returns>
 public WriteResult Update(ACLEntry acl, WriteOptions q)
 {
     return(_client.CreateInWrite <ACLEntry>("/v1/acl/update", acl, q).Execute());
 }