James Phillips
6daf26ada4
Adds documentation for the transaction endpoint.
2016-05-11 14:18:47 -07:00
James Phillips
88b1c7d054
Makes get fail a transaction if the key doesn't exist.
2016-05-11 14:18:31 -07:00
James Phillips
3d35acaa90
De-nests the KV output structure (removes DirEnt member).
2016-05-11 13:48:03 -07:00
James Phillips
04a13ec3d7
Switches to "KV" instead of "KV" for the KV operations.
2016-05-11 10:58:27 -07:00
James Phillips
dc662f7e35
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
d980cbcd9d
Moves txn code into a new endpoint, not specific to KV.
2016-05-10 21:58:02 -07:00
James Phillips
54b930103c
Terminates pretty responses with a newline.
2016-05-10 20:02:36 -07:00
James Phillips
907d8bab34
Fixes some go vet findings in a unit test.
2016-05-10 20:01:52 -07:00
Sean Chittenden
94e2766423
Remove stray type definition
...
Noticed while working on Nomad Client's server selection code.
2016-05-10 18:56:28 -07:00
James Phillips
c1db39fe85
Adds type for API ops and an example transaction.
2016-05-10 13:36:48 -07:00
James Phillips
15a331d36c
Adds unit tests for HTTP endpoint.
2016-05-10 12:59:34 -07:00
James Phillips
4eb89481df
Adds internal endpoint read ACL support and full unit tests.
2016-05-10 11:23:47 -07:00
Evan Gilman
bf2760ac18
Enable Stale mode for watchers
...
Solves https://github.com/hashicorp/consul/issues/917 by giving consul
watch a `-stale` flag
2016-05-10 00:09:15 -07:00
James Phillips
6a96e052c4
Adds an empty get test case.
2016-05-09 22:18:26 -07:00
James Phillips
471160d8f0
Performs basic plumbing of KVS transactions through all the layers.
2016-05-09 22:15:49 -07:00
James Phillips
d4187bacc2
Merge pull request #2014 from hashicorp/f-secure-rand
...
Use a cryptographically secure seed
2016-05-09 20:07:28 -07:00
Sean Chittenden
e7197bfa83
Bump Go to 1.6.2 for Travis (just added)
2016-05-08 22:10:42 -07:00
Sean Chittenden
10a479d3e4
Merge pull request #2029 from hashicorp/f-test-coverage
...
Update testing output
2016-05-07 15:14:19 -07:00
Sean Chittenden
ac4245f46f
Don't build darwin/arm until we figure out what's going on with Travis
2016-05-07 14:53:21 -07:00
Sean Chittenden
3c33327979
Revert to Go 1.6 to see if that fixes Travis
2016-05-07 14:22:15 -07:00
Sean Chittenden
8aa31f63a2
Bump Go back to 1.6.1 to see if this breaks darwin/arm again
2016-05-07 14:00:32 -07:00
Sean Chittenden
ec869292d6
Revert to Go 1.6 to see if that fixes Travis
2016-05-07 13:55:28 -07:00
Sean Chittenden
b2ab5fa6b8
Bump Go to 1.6.1
2016-05-07 13:25:29 -07:00
Sean Chittenden
0ba86087eb
Include the test coverage report in the output
...
Inspired by: Nomad project
2016-05-07 13:04:28 -07:00
Sean Chittenden
888bfa71c7
Add `tools/cmd/cover` to GOTOOLS
2016-05-07 13:02:12 -07:00
Sean Chittenden
79701fbf6d
golang.org/x/tools/cmd/vet is obsolete after Go1.5
...
`go tool vet` is builtin starting with Go 1.5
2016-05-07 13:01:07 -07:00
James Phillips
dca00c96f7
Adds state store support for atomic KVS ops.
2016-05-05 15:46:59 -07:00
Sean Chittenden
9647c9dc46
Merge pull request #2023 from hashicorp/f-current-version-checkpoint
...
Include the current version along side the available version.
2016-05-04 23:47:30 -07:00
Sean Chittenden
b34b1f85aa
Include the current version along side the available version.
...
When checkpoint emits a log message indicating an agent is out of
date, include the current version along with the available version
according to checkpoint.
Inspired by: log output in #993
2016-05-04 22:57:44 -07:00
James Phillips
a1a59bee73
Splits existing KVS operations into *Txn helpers for later reuse.
2016-05-04 14:20:11 -07:00
James Phillips
200f2b5f2a
Merge pull request #2021 from MansM/patch-2
...
Update install.sh
2016-05-04 09:37:51 -07:00
James Phillips
c5a66c3276
Merge pull request #2020 from MansM/patch-1
...
Update install.sh
2016-05-04 09:37:37 -07:00
MansM
8c71cd24c3
Update install.sh
...
version bump
2016-05-04 18:03:39 +02:00
MansM
8729793d52
Update install.sh
...
version bump
2016-05-04 18:01:47 +02:00
James Phillips
85a3d99793
Merge pull request #2018 from hashicorp/jt-ie
...
add height to fix svg in announcement bnr
2016-05-03 17:54:22 -07:00
captainill
69cf3692f1
add height to fix svg in announcement bnr
2016-05-03 17:41:55 -07:00
Sean Chittenden
4a0a0b3376
Use a cryptographically secure seed
...
`SeededSecurely` is present if someone or something wants to query the way the library was seeded.
Obtained from: nomad
2016-05-02 23:52:37 -07:00
James Phillips
9185450fd5
Moves KVS-related state store code out into its own set of files.
2016-05-02 16:21:04 -07:00
James Phillips
802e74deef
Merge pull request #2012 from hashicorp/sethvargo/elink
...
Track enhanced links
2016-05-02 13:31:42 -07:00
Seth Vargo
cf9d243240
Track enhanced links
2016-05-02 15:55:04 -04:00
fusiondog
9c10bd0b23
Clarify need for recursors option.
...
Reiterating that the iptables option requires recursors to be set to resolve for any domain besides .consul
2016-04-29 16:45:59 -07:00
Sean Chittenden
f3543f7e2d
Merge pull request #2003 from hashicorp/f-issue-template
...
Add a Github issue template
2016-04-29 11:24:13 -07:00
fusiondog
aa8dda5149
DNS forwarding with iptables
...
Adding notes on using iptables to forward ports
2016-04-28 23:27:28 -07:00
Sean Chittenden
aad1fe1a09
Revise issue template to include a hint to use a gist
2016-04-28 22:27:25 -07:00
Sean Chittenden
f80db919cc
Add a Github issue template
2016-04-28 16:57:31 -07:00
James Phillips
235a577385
Merge pull request #2001 from hashicorp/f-consul-info-peers
...
Add the list of Raft peers to Consul's Stats
2016-04-28 15:12:55 -07:00
Sean Chittenden
c16b1ca178
Add the list of Raft peers to Consul's Stats
...
```
% consul info
[snip]
raft:
[snip]
raft_peers = 127.0.0.1:8300
[snip]
```
Poached from: Nomad Project
2016-04-28 15:08:48 -07:00
James Phillips
3f26132ceb
Merge pull request #1996 from kjtanaka/update-demo
...
update vagrant demo
2016-04-27 15:09:46 -07:00
James Phillips
76b90ccb17
Fixes and clarifies the only_passing docs.
2016-04-27 14:55:38 -07:00
Koji Tanaka
db2e264c02
update vagrant demo
2016-04-27 17:52:23 -04:00