Commit Graph
100 Commits
Author SHA1 Message Date
Zlatko Čalušić 9ef84dcdea Update dependencies 2018-01-21 19:43:52 +01:00
Zlatko Čalušić 0a5606e954 Update examples/compose-with-grafana/README.md 2018-01-21 19:36:01 +01:00
Zlatko Čalušić 5a2c70c9e1 Update AUTHORS 2018-01-21 19:28:17 +01:00
Zlatko Čalušić cbe5cf5c74 Optimize Config struct (maligned) 2018-01-21 19:25:12 +01:00
Zlatko Čalušić 14f8cd5bca Update README.md 2017-10-25 19:19:24 +02:00
Zlatko Čalušić 791bb572f8 Update LICENSE, add AUTHORS 2017-10-25 19:13:07 +02:00
Zlatko Čalušić d056b85432 Check errors in many places
Admittedly, in some places just document the fact that we ignore error
return values, 'cause we don't know what to do with it.  At least, the
linter is happy.
2017-10-25 18:31:34 +02:00
Zlatko Čalušić 10951e4540 Unshadow err in one place 2017-10-25 18:19:14 +02:00
Zlatko Čalušić 0f9ea68a2e Optimize Config struct (maligned) 2017-10-25 18:16:14 +02:00
Zlatko Čalušić 9b89df0842 Comment global variables 2017-10-25 18:14:07 +02:00
Zlatko Čalušić 50b52dfd74 Version 0.9.5 2017-10-19 11:04:22 +02:00
Zlatko Čalušić a20136a8da Set docker image default port also to 8000
So that rest-server can be started as non-root user.  You can choose
which port to expose, anyway.
2017-10-19 00:16:54 +02:00
Zlatko Čalušić 132232db69 Update dependencies 2017-10-19 00:05:02 +02:00
Zlatko Čalušić e4071748b9 Update README.md 2017-10-18 23:52:03 +02:00
Zlatko Čalušić ca5664b8a7 Makefile: add rules for docker image build 2017-10-18 23:38:18 +02:00
Zlatko Čalušić ebe3bc04b5 Docker: various updates
- use exec in entrypoint.sh, get rid of extra shell process
- use CMD instead of ENTRYPOINT, so image can be run with /bin/sh arg
2017-10-18 23:18:44 +02:00
Zlatko Čalušić 87356ac452 Docker: use golang:1.9.1-alpine to build rest-server binary 2017-10-18 23:01:53 +02:00
Zlatko Čalušić a43bfa19e4 Update Makefile 2017-10-15 21:19:38 +02:00
Zlatko Čalušić dc9b99777b Update .gitignore 2017-10-10 19:07:48 +02:00
Zlatko Čalušić fff8ecd210 Update Makefile, README.md
We now have make install rule.
2017-10-05 09:53:45 +02:00
Zlatko Čalušić 8bd0ed3219 Update .travis.yml 2017-10-04 22:20:26 +02:00
Zlatko Čalušić c091bdc8bb Introduce Makefile 2017-10-04 22:17:34 +02:00
Zlatko Čalušić d5bbf6aac8 Fix case 2017-10-04 22:07:06 +02:00
Zlatko Čalušić ac7c83fa47 Update README.md 2017-10-04 21:59:58 +02:00
Zlatko Čalušić 56954b3131 Update dependencies 2017-10-04 21:44:44 +02:00
Zlatko Čalušić 16022faa7a Update .travis.yml 2017-08-25 09:45:26 +02:00
Zlatko Čalušić 0a0ed9c4b5 Version 0.9.4 2017-07-31 11:40:22 +02:00
Zlatko Čalušić 57ca1d7d6e Slightly improve error handling
Pass errors from Cobra runRoot() to main().
2017-07-30 17:45:23 +02:00
Zlatko Čalušić 9a6bb5eebe Update README.md
Document restic v0.7.1 as the required version to run with Rest Server.

Closes #11
2017-07-22 12:32:05 +02:00
Zlatko Čalušić cae51e1478 Update dependencies 2017-07-19 22:18:06 +02:00
Zlatko Čalušić 0e5f662fed Switch to dep dependency management tool 2017-07-19 22:12:34 +02:00
Zlatko Čalušić b2e4715d1b Version 0.9.3 2017-06-29 00:01:23 +02:00
Zlatko Čalušić 4873fd9ffe Update dependencies 2017-06-25 12:06:41 +02:00
Zlatko Čalušić 0c22253d41 Update README.md 2017-06-25 12:04:48 +02:00
Zlatko Čalušić 6b821132ec Travis can't determine latest versions of Go 2017-06-09 00:10:45 +02:00
Zlatko Čalušić 99eb5a4682 Update .travis.yml 2017-06-05 20:57:17 +02:00
Zlatko Čalušić d54a589176 README.md: document why and when to use rest-server 2017-06-04 12:10:11 +02:00
Zlatko Čalušić 907801c8b9 Update dependencies 2017-06-02 10:27:10 +02:00
Zlatko Čalušić 5401014105 Version 0.9.2 2017-06-02 09:51:45 +02:00
Zlatko Čalušić 267f5d330a build.go: Use Go log package instead of custom die() implementation 2017-06-02 09:26:02 +02:00
Zlatko Čalušić e591a330e5 build.go: Update for rest-server 2017-06-02 09:04:27 +02:00
Zlatko Čalušić fbac61c6cb build.go: Strip temporary path, allow reproducible builds
https://github.com/restic/restic/commit/de48a5ac9c9c814c5870d9a52c2ff55607a8b1fa
2017-06-02 08:56:08 +02:00
Zlatko Čalušić ba98452c5e build.go: Add --enable-cgo
https://github.com/restic/restic/commit/c49da4c6f7a6f3f7ae9a777de56118561bca96a9
2017-06-02 08:55:27 +02:00
Zlatko Čalušić 3122bd76ed build.go: Fix ineffassign mistakes
https://github.com/restic/restic/commit/971ecee17118344e5d09751cb112deff7d0f8513
2017-06-02 08:54:30 +02:00
Zlatko Čalušić fd9e42ed71 build.go: Also copy header files
https://github.com/restic/restic/commit/e6ca604d24e58e79a5034ac9427496771df69ad0
2017-06-02 08:53:31 +02:00
Zlatko Čalušić 4bc2581b47 Check version in build.go
Print a sensible error for Go < 1.7 (the "context" package is missing there)

https://github.com/restic/restic/commit/f8dd5d5088a777fb8c66ba88dadd938a76e91c6b
2017-06-02 08:52:04 +02:00
Zlatko Čalušić a029785c73 build.go: Make binaries completely static (disables cgo)
https://github.com/restic/restic/commit/7e0a4c66e722bb367c4e7154c05db26189dceb31
2017-06-02 08:50:28 +02:00
Zlatko Čalušić 0ee5921e04 build.go: Allow setting the output file name
https://github.com/restic/restic/commit/62b1056860dbb12efab325adabd48ad5aac78591
2017-06-02 08:49:50 +02:00
Zlatko Čalušić 2a4c1d221a Document restic v0.6.1 as required version to use with rest-server 2017-06-02 08:25:11 +02:00
Zlatko Čalušić 997e8f4979 Update glide.yaml 2017-05-31 23:47:07 +02:00
Zlatko Čalušić c7ffc41a65 Add support for logging HTTP requests in the combined log format 2017-05-31 23:45:16 +02:00
Zlatko Čalušić ed59c2ec28 Update dependencies 2017-05-31 22:23:46 +02:00
Zlatko Čalušić 954686ce66 Update README.md 2017-05-30 00:44:39 +02:00
Zlatko Čalušić cbc1941008 Update .travis.yml 2017-05-29 09:30:54 +02:00
Zlatko Čalušić c74938fac6 Version 0.9.1 2017-05-01 20:17:15 +02:00
Zlatko Čalušić 489391646d Refactor createDirectories(), improve error handling 2017-05-01 20:10:46 +02:00
Zlatko Čalušić e93bc32c78 Remove legacy code 2017-05-01 20:02:27 +02:00
Zlatko Čalušić e2a4dd5dab Handler cleanup 2017-05-01 20:01:52 +02:00
Zlatko Čalušić 661e66849b Update .travis.yml 2017-05-01 19:16:36 +02:00
Zlatko Čalušić 77088473f0 Update README.md 2017-05-01 19:13:03 +02:00
Zlatko Čalušić ed8b484766 Add missing route to CreateRepo() 2017-04-01 10:20:06 +02:00
Zlatko Čalušić a7197e7778 Update .travis.yml 2017-02-17 17:15:20 +01:00
Zlatko Čalušić be82bc7a5e Remove local copy of REST_backend.md document 2017-02-02 11:34:15 +01:00
Zlatko Čalušić 919add5012 Implement POST /path?create=true for explicit repository creation
Legacy code which created repo on first "POST /keys/foo" remains, so
restic clients <= v0.3.3 continue working.
2017-01-27 20:45:53 +01:00
Zlatko Čalušić 2c90434911 Add debug output for HTTP error cases 2017-01-16 23:39:56 +01:00
Zlatko Čalušić 4d04351ac9 Report data directory on startup 2017-01-16 23:19:51 +01:00
Zlatko Čalušić 20f167f7b4 Refactor main() a bit 2017-01-16 23:15:16 +01:00
Zlatko Čalušić c1ace4c9d9 Don't shadow config struct 2017-01-16 23:01:08 +01:00
Zlatko Čalušić ff5fbf34e1 Update README.md 2017-01-04 00:21:02 +01:00
Zlatko Čalušić 87ebe10300 Update to cobra style flags 2016-12-30 23:26:15 +01:00
Zlatko Čalušić f775e15484 Update LICENSE 2016-12-30 22:43:22 +01:00
Zlatko Čalušić 130b202fdb Update README.md 2016-12-30 22:40:11 +01:00
Zlatko Čalušić c228f57ddf Report version on startup 2016-12-30 21:56:07 +01:00
Zlatko Čalušić e945404183 Add VERSION 2016-12-30 18:34:37 +01:00
Zlatko Čalušić 81171b67cb Update .travis.yml 2016-12-30 18:34:37 +01:00
Zlatko Čalušić 1d18db96aa Update glide.yaml 2016-12-30 18:34:37 +01:00
Zlatko Čalušić afe9f43cd8 Update .gitignore 2016-12-30 18:34:37 +01:00
Zlatko Čalušić 2f0a16d8b7 Restic server shall be called Rest server from now on
The repo moved from github.com/zcalusic/restic-server to the new home
github.com/restic/rest-server
2016-12-28 21:52:19 +01:00
Zlatko Čalušić c600048400 Use Go constants for HTTP errors 2016-12-28 19:51:25 +01:00
Zlatko Čalušić f14b15ee31 Allow multiple repositories 2016-12-28 00:57:25 +01:00
Zlatko Čalušić 755cf10659 Use goji.io pat package to extract params 2016-12-27 18:59:47 +01:00
Zlatko Čalušić 01ff183e12 Named matches updated to match documentation 2016-12-27 17:00:23 +01:00
Zlatko Čalušić 421d869e00 Add REST_backend.md 2016-12-27 16:37:59 +01:00
Zlatko Čalušić e9522752e3 Travis: stop building with Go 1.6 2016-12-27 16:19:59 +01:00
Zlatko Čalušić d0027c19db Create toplevel repository directory 2016-12-27 16:15:54 +01:00
Zlatko Čalušić 64efcc2813 Update .gitignore 2016-12-27 16:15:31 +01:00
Zlatko Čalušić fa0b53efe7 Use goji.io mux
Remove old router implementation.
2016-12-27 14:24:07 +01:00
Zlatko Čalušić 1f29574118 Add debug flag 2016-12-27 12:26:41 +01:00
Zlatko Čalušić 061d31829d Create directories before key setup, not on startup 2016-12-27 01:35:45 +01:00
Zlatko Čalušić 75c1eae7f2 Add isHashed() 2016-11-11 01:29:55 +01:00
Zlatko Čalušić cc25dffd15 Rename server.go to main.go 2016-11-11 01:24:34 +01:00
Zlatko Čalušić fcb062d3c6 Refactor server.go 2016-11-11 01:24:06 +01:00
Zlatko Čalušić bc66905f3f Check for errors in main() 2016-11-11 00:55:56 +01:00
Zlatko Čalušić 1afd09d98a Example systemd service file 2016-11-07 00:54:32 +01:00
Zlatko Čalušić ad003274d2 Remove unused errors package 2016-11-06 20:18:07 +01:00
Zlatko Čalušić 267ae63276 Remove fs package and dirty tricks it does
The Linux kernel page cache ALWAYS knows better.  Fighting it brings
only worse performance. Usage of fadvise() is wrong 9 out of 10 times.

Removing the whole fs package brings a nice 100% speedup when running
costly prune command. And that is measured on localhost, the improvement
could be much bigger when using network with higher latency.
2016-11-06 20:09:42 +01:00
Zlatko Čalušić bbcbca2d4e Stop logging date/time
In preparation for systemd configuration. Modern programs are supervised
by systemd. Systemd journal has it's own timestamping, so we don't need
another one.
2016-11-06 19:58:11 +01:00
Zlatko Čalušić ced5fd1a66 Remove debugging log.Printf() 2016-11-06 19:42:35 +01:00
Zlatko Čalušić c00e8f6686 Introduce cpuprofile argument 2016-11-06 19:38:41 +01:00
Zlatko Čalušić 0b7c460632 Miscellaneous server.go changes 2016-11-06 19:21:17 +01:00