laser
fb1d5197fa
pass SetConfig a mutator func, as per PR feedback
...
- fsLockedRepo.config gets a mutex
- add missing checkToken call to lockedMemRepo#GetStorage and lockedMemRepo#SetStorage
- LockedRepo#SetConfig accepts a mutating function as per @magik
2020-06-11 08:49:19 -07:00
laser
cf321f7667
add support for replacing config after node starts
...
- TODO: does a "locked repo" need fine-grained (i.e. field-level) locking?
2020-06-11 08:49:19 -07:00
Jakub Sztandera
5605aae269
Fix even more lint warnings
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 16:29:39 +02:00
Łukasz Magiera
c73326e96d
fsrepo: Use LevelDB for metadata datastore
2020-06-01 20:13:07 +02:00
Łukasz Magiera
e5c24ff32b
Update sector-storage with ReadPiece impl
2020-05-29 19:53:35 +02:00
Łukasz Magiera
f1ccbe496a
cli: Trim spaces from token file
2020-05-28 22:11:49 +02:00
Ignacio Hagopian
6e63ea6cce
revert file
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2020-05-28 22:11:49 +02:00
Ignacio Hagopian
de3edc2ec7
remote ipfs support & automatic env
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2020-05-28 22:11:49 +02:00
Łukasz Magiera
95ee1c1cde
Extract sector-storage
2020-03-28 01:32:39 +01:00
Łukasz Magiera
c66d3dfad7
sectorstorage: Untangle from lotus deps
2020-03-27 22:35:33 +01:00
Łukasz Magiera
2c7f579838
workers: Implement SectorIndex
2020-03-13 12:59:19 +01:00
Łukasz Magiera
bc7fede68b
workers: Wire up most pieces
2020-03-13 02:37:38 +01:00
Łukasz Magiera
0c2af7a8ee
repo: Fix fsrepo.SetStorage on init
2020-03-09 22:46:17 +01:00
Łukasz Magiera
01087e01d2
storage: Improve thread safety
2020-03-09 20:22:30 +01:00
Łukasz Magiera
a5e5918fc5
mod tidy; gofmt
2020-03-05 20:21:06 +01:00
Łukasz Magiera
a0dbb6bdd6
Storage Manager refactor
2020-03-03 23:19:22 +01:00
Jakub Sztandera
49167cc55f
Expose JWT permission error
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-12 21:25:29 +01:00
Jakub Sztandera
1ed62628a7
Update go-log to v2
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-08 20:22:31 +01:00
Jakub Sztandera
886898b137
Update to badger v2
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-08 19:56:45 +01:00
whyrusleeping
613a0a05a0
more of that sweet staticcheck goodness
2019-12-04 18:04:09 -08:00
Jakub Sztandera
d9520a05dd
Make sure pond works, don't override config
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-11-13 16:37:54 +01:00
Jakub Sztandera
70419c0f55
Use API ListenAddress from config
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-11-13 16:37:40 +01:00
Łukasz Magiera
73ab6c0c66
WorkerCount on storageminer config
2019-11-12 18:59:38 +01:00
Jakub Sztandera
3ea0997c93
Add support for different configs
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-30 17:38:39 +01:00
Łukasz Magiera
5432987030
repo: enable badger log truncation
2019-10-29 19:04:35 +01:00
whyrusleeping
63b81af23e
handle changing default address
2019-10-18 20:42:00 +09:00
Jakub Sztandera
1bf713cb0a
Cleanup imports after rename
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 13:47:41 +09:00
whyrusleeping
d818e20df5
Wallets record default address in keystore
2019-10-17 19:18:40 +09:00
Łukasz Magiera
1534536590
Store libp2p key in keystore
2019-10-03 02:11:31 +02:00
Łukasz Magiera
f2ecb772fa
repo: Close datastore in Close
2019-09-17 16:34:22 +02:00
Łukasz Magiera
282654bf7b
pond: storage miner init
2019-08-02 16:15:14 +02:00
Łukasz Magiera
12baee0e57
Use xerrors
2019-07-26 13:45:25 +02:00
whyrusleeping
2facece1f6
improve errors a bit
2019-07-25 20:26:29 -07:00
Łukasz Magiera
4fa9e45eb7
repo: check for config in exists
2019-07-24 13:20:00 +02:00
Łukasz Magiera
4c8b028887
Return error form Repo.Exists
2019-07-24 01:47:36 +02:00
Łukasz Magiera
fe147ce90d
StorageMiner node type
2019-07-24 01:47:36 +02:00
Łukasz Magiera
a88be8d1df
auth: Store token in repo
2019-07-24 00:38:52 +02:00
Jakub Sztandera
cb9bf4200c
Move KeyStore into types
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-18 16:57:49 +02:00
Jakub Sztandera
902ea18686
Add keystore to the repo
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-18 16:01:39 +02:00
Łukasz Magiera
cec4918cd9
Make client import actually work
2019-07-15 16:17:34 +02:00
Łukasz Magiera
97c61d4ce5
Client import
2019-07-15 16:17:34 +02:00
Jakub Sztandera
46a93d2448
Add more tests to repo
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-12 17:51:38 +02:00
Łukasz Magiera
cd16e3e597
Fix lint warnings
2019-07-11 13:52:07 +02:00
Łukasz Magiera
ffafc056ee
fsrepo: check dsErr before returning datastore
2019-07-11 13:48:21 +02:00
Łukasz Magiera
1f97ad2c2e
Use repo libp2p identiny
2019-07-10 19:43:19 +02:00
Łukasz Magiera
e639670195
cli: use repo api endpoint
2019-07-10 19:28:49 +02:00
Łukasz Magiera
1f8c3f4145
repo: update Datastore, Init
2019-07-10 19:09:57 +02:00
Jakub Sztandera
ed54a30109
fix lint
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-10 17:14:29 +02:00
Jakub Sztandera
d484e4ffb9
Run tests and fix some bugs
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-10 17:11:10 +02:00
Jakub Sztandera
8cd484a8b0
Change lint options
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-10 15:42:18 +02:00