James Phillips
4bbaf1cd15
Switches GETs to a filtering model for ACLs.
2016-05-13 15:58:55 -07:00
James Phillips
570d46aa5f
Adds some size limiting features to transactions to help prevent abuse.
2016-05-13 13:39:01 -07:00
James Phillips
fbfb90a694
Removes null results for deletes, and preps for more than one result from an operation.
2016-05-13 01:47:55 -07:00
James Phillips
a37bf9de56
Adds a read-only optimized path for transactions.
2016-05-13 00:34:05 -07:00
James Phillips
359541a67d
Update README.md
...
Fixes #2041 .
2016-05-12 21:38:43 -07:00
James Phillips
9443c6ba71
Adds a comment for the txnKVS() function.
2016-05-12 16:11:26 -07:00
James Phillips
8a7428e508
Hoists KV processing helper functions up as static functions.
2016-05-12 16:10:06 -07:00
James Phillips
8ff2722a8a
Merge pull request #2040 from hashicorp/go-1.6.2
...
Upgrades to Go 1.6.2.
2016-05-12 16:08:49 -07:00
James Phillips
78b20f508c
Upgrades to Go 1.6.2.
2016-05-12 16:08:33 -07:00
James Phillips
17cd0ac4ec
Adds documentation for the transaction endpoint.
2016-05-11 14:18:47 -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
1fefdcb962
Terminates pretty responses with a newline.
2016-05-10 20:02:36 -07:00
James Phillips
23545f97fe
Fixes some go vet findings in a unit test.
2016-05-10 20:01:52 -07:00
Sean Chittenden
fd63a81706
Remove stray type definition
...
Noticed while working on Nomad Client's server selection code.
2016-05-10 18:56:28 -07:00
James Phillips
44ab1aa418
Adds type for API ops and an example transaction.
2016-05-10 13:36:48 -07:00
James Phillips
7a797da3e5
Adds unit tests for HTTP endpoint.
2016-05-10 12:59:34 -07:00
James Phillips
fcb0c20867
Adds internal endpoint read ACL support and full unit tests.
2016-05-10 11:23:47 -07:00
James Phillips
2f51926852
Adds an empty get test case.
2016-05-09 22:18:26 -07:00
James Phillips
e491245062
Performs basic plumbing of KVS transactions through all the layers.
2016-05-09 22:15:49 -07:00
James Phillips
2f0a95a2d9
Merge pull request #2014 from hashicorp/f-secure-rand
...
Use a cryptographically secure seed
2016-05-09 20:07:28 -07:00
Sean Chittenden
ae6cd89dd8
Bump Go to 1.6.2 for Travis (just added)
2016-05-08 22:10:42 -07:00
Sean Chittenden
6fc4557bd6
Merge pull request #2029 from hashicorp/f-test-coverage
...
Update testing output
2016-05-07 15:14:19 -07:00
Sean Chittenden
ac298eacad
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
d014d3148b
Revert to Go 1.6 to see if that fixes Travis
2016-05-07 14:22:15 -07:00
Sean Chittenden
c3e5bf0d15
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
2443830909
Revert to Go 1.6 to see if that fixes Travis
2016-05-07 13:55:28 -07:00
Sean Chittenden
2baa593cde
Bump Go to 1.6.1
2016-05-07 13:25:29 -07:00
Sean Chittenden
05b60da07c
Include the test coverage report in the output
...
Inspired by: Nomad project
2016-05-07 13:04:28 -07:00
Sean Chittenden
3fc714b9b6
Add `tools/cmd/cover` to GOTOOLS
2016-05-07 13:02:12 -07:00
Sean Chittenden
e59509227c
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
b7ae973642
Adds state store support for atomic KVS ops.
2016-05-05 15:46:59 -07:00
Sean Chittenden
65aa46838e
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
01b8311c94
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
6c2aeb25ab
Splits existing KVS operations into *Txn helpers for later reuse.
2016-05-04 14:20:11 -07:00
James Phillips
730dd7df47
Merge pull request #2021 from MansM/patch-2
...
Update install.sh
2016-05-04 09:37:51 -07:00
James Phillips
eb888733cc
Merge pull request #2020 from MansM/patch-1
...
Update install.sh
2016-05-04 09:37:37 -07:00
MansM
5bd3995be3
Update install.sh
...
version bump
2016-05-04 18:03:39 +02:00
MansM
e19ff53e5c
Update install.sh
...
version bump
2016-05-04 18:01:47 +02:00
James Phillips
80048067ff
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
9960e636b4
add height to fix svg in announcement bnr
2016-05-03 17:41:55 -07:00
Sean Chittenden
d695bcaae6
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
9edca28203
Moves KVS-related state store code out into its own set of files.
2016-05-02 16:21:04 -07:00
James Phillips
9f272b0881
Merge pull request #2012 from hashicorp/sethvargo/elink
...
Track enhanced links
2016-05-02 13:31:42 -07:00
Seth Vargo
8baadf332a
Track enhanced links
2016-05-02 15:55:04 -04:00
Sean Chittenden
0c5a487838
Merge pull request #2003 from hashicorp/f-issue-template
...
Add a Github issue template
2016-04-29 11:24:13 -07:00
Sean Chittenden
2122a3349c
Revise issue template to include a hint to use a gist
2016-04-28 22:27:25 -07:00