Kyle Havlovitz
f6c971f46c
Fix race condition in TestClient_WatchList and TestClient_WatchGet
2016-10-25 17:48:11 -07:00
James Phillips
554c898338
Merge pull request #2382 from zaunerc/master
...
Add info about return values for function Get().
2016-10-20 09:40:58 -07:00
James Phillips
556ffc588b
Adds comment about SessionOpts.
2016-10-05 17:53:27 -07:00
James Phillips
25455c97c3
Merge pull request #2372 from HotelsDotCom/flexible-lock-sessions
...
More flexible Session configuration when using api.Lock
2016-10-05 17:52:12 -07:00
Christoph Zauner
faf85f602b
Add info about return values for function Get().
2016-10-03 08:24:04 +00:00
Maxim Ivanov
2ed58a2747
More flexible Session configuration when using api.Lock
2016-09-29 14:07:54 +01:00
aksentyev
4f96fa0aea
CreateIndex, ModifyIndex added for CatalogService
2016-09-28 00:40:25 +03:00
Seth Vargo
40de5858d3
Fix typo
2016-09-26 16:06:56 -07:00
Seth Vargo
55f1b4ac44
Rename session name to session ID
2016-09-26 16:06:55 -07:00
Seth Vargo
12e46503f7
Update ModifyIndex comment
2016-09-26 16:06:55 -07:00
Seth Vargo
227019ec59
Add documentation to KVPair
...
Based on discussions with @slackpad, some of the values in the KVPair are
ReadOnly. This commit updates the docs to reflect that.
2016-09-26 16:06:52 -07:00
James Phillips
84e8fc5848
Removes Raft types from public API interface.
...
This will cause a lot of breakage because we've currently vendored a
branch of the Raft library.
2016-08-30 14:59:16 -07:00
James Phillips
3c9188c38b
Makes the Raft configuration API easier to consume.
2016-08-30 11:30:56 -07:00
James Phillips
0558b9c44b
Fixes a stale comment.
2016-08-30 00:10:46 -07:00
James Phillips
e5850d8a26
Adds new consul operator endpoint, CLI, and ACL and some basic Raft commands.
2016-08-30 00:02:50 -07:00
James Phillips
defa2a6180
Merge pull request #2226 from abhinavdahiya/rm-health-unknown
...
Fixes #1775 ; Removes 'unknown' state
2016-08-17 17:51:04 -07:00
James Phillips
4c7a0ed3b0
Merge branch 'master' into f-deregister-critical
2016-08-16 12:53:21 -07:00
James Phillips
9f7a973ace
Adds an X-Consul-Translate-Addresses
to signal translation is enabled.
2016-08-16 11:31:41 -07:00
James Phillips
1d5eb36689
Adds missing TaggedAddress structures to API client.
2016-08-16 10:30:30 -07:00
James Phillips
231f5a957f
Fixes a typo and adds an admonition about only being in Consul 0.7+.
2016-08-16 09:27:20 -07:00
James Phillips
4a3d7db24f
Adds ability to deregister a service based on critical check state longer than a timeout.
2016-08-16 01:00:26 -07:00
Hasyimi Bahrudin
105cea9bae
Add api environment variables as constants for consistency
2016-08-03 14:40:31 +08:00
Hasyimi Bahrudin
bb6bb19aad
Remove redundant hardcoded environment variables
...
The following hardcoded environment variables are removed:
* CONSUL_RPC_ADDR
* CONSUL_HTTP_ADDR
2016-08-03 14:40:26 +08:00
Jeff Mitchell
f1a67836d8
Use header to send Consul token rather than query param.
2016-08-02 16:54:59 -04:00
Abhinav Dahiya
7c6c3b38bc
Fixes #1775 ; Removes 'unknown' state
...
Signed-off-by: Abhinav Dahiya <abhinavdtu2012@gmail.com>
2016-07-30 19:33:14 +05:30
Ryan Uber
499537addf
api: add query templates
2016-07-02 16:05:41 -07:00
Ryan Uber
72b43eba26
api: add Near parameter to PQ's
2016-07-01 16:41:46 -07:00
James Phillips
778b975e7a
Adds a get-tree verb to KV transaction operations.
2016-05-13 16:57:39 -07:00
James Phillips
a37bf9de56
Adds a read-only optimized path for transactions.
2016-05-13 00:34:05 -07:00
James Phillips
04d99cd702
Makes get fail a transaction if the key doesn't exist.
2016-05-11 14:18:31 -07:00
James Phillips
4882a9fe43
De-nests the KV output structure (removes DirEnt member).
2016-05-11 13:48:03 -07:00
James Phillips
960b9d6fb6
Switches to "KV" instead of "KV" for the KV operations.
2016-05-11 10:58:27 -07:00
James Phillips
38d0f6676f
Refactors TxnRequest/TxnResponse into a form that will allow non-KV ops.
...
This isn't needed/used yet, but it's a good hook to get in there so we
can add more atomic operations in the future. The Go API hides this detail
so that feels like a KV-specific API. The implications on the REST API are
pretty minimal.
2016-05-11 01:39:10 -07:00
James Phillips
69f58ad04a
Moves txn code into a new endpoint, not specific to KV.
2016-05-10 21:58:02 -07:00
James Phillips
44ab1aa418
Adds type for API ops and an example transaction.
2016-05-10 13:36:48 -07:00
James Phillips
e491245062
Performs basic plumbing of KVS transactions through all the layers.
2016-05-09 22:15:49 -07:00
Sean Chittenden
4255a0826d
Correct a small typo
2016-04-23 20:18:19 -07:00
Sean Chittenden
f1873c21d7
consul/ uses structs.Health*, the api uses api.Health*
2016-04-23 16:06:58 -07:00
Sean Chittenden
e63d3a1275
Update Check API to use constants
...
Use constants where appropriate to advocate their use. Also add a deprecation notice re: `updateTTL`.
2016-04-23 16:01:59 -07:00
James Phillips
3340d7ccd7
Merge pull request #1876 from hashicorp/f-tls-helper
...
Adds TLS config helper to API client.
2016-03-24 11:34:24 -07:00
James Phillips
0eb6279c5e
Improves the comment for the Address field.
2016-03-24 11:33:44 -07:00
Diptanu Choudhury
4811a72d80
Added some constants in the api for check health statuses
2016-03-24 11:26:07 -07:00
James Phillips
1cfed981b3
Adds TLS config helper to API client.
2016-03-24 11:24:18 -07:00
James Phillips
abacccd6e5
Switches default for API client to pooled connections.
2016-03-10 12:29:50 -08:00
James Phillips
23247b3699
Adds support for new PUT API for checks.
2016-03-04 15:18:25 -08:00
James Phillips
afdeb2f1fc
Adds support for EnableTagOverride to the API client.
2016-02-16 11:45:29 -08:00
Seth Vargo
cae0ff354a
Use HTTPS + www. where appropriate
2016-01-13 17:44:01 -05:00
James Phillips
58fb27e70f
Factors server error checking into a new function.
2016-01-06 11:35:16 -08:00
James Phillips
c048c5aca6
Makes the API behave better with small wait values.
2016-01-06 11:05:11 -08:00
James Phillips
49342dc973
Makes the timeout behavior more intuitive.
...
Previously, it would try once "up to" the timeout, but in practice it would
just fall through. This modifies the behavior to block until the timeout has
been reached.
2016-01-06 09:40:20 -08:00