Itamar Turner-Trauring
fadfbcad99
Merge pull request #1130 from tahoe-lafs/3801-no-overlapping-writes-immutable-upload
...
Disallow conflicting overlapping writes when doing an immutable upload.
Fixes ticket:3801
2021-09-28 10:37:56 -04:00
Itamar Turner-Trauring
da937cef9e
Correct docstring.
2021-09-27 15:04:04 -04:00
Itamar Turner-Trauring
1ff4e61e41
Low-level tests for conflicting and non-conflicting writes.
2021-09-24 10:49:27 -04:00
Itamar Turner-Trauring
e11e5dfbe6
Revert removal of length in IStorageServer.
2021-09-15 16:31:54 -04:00
Itamar Turner-Trauring
911a5e2ed1
Rip out server-side usage of operators other than eq, because nothing ever used them.
2021-09-15 11:07:02 -04:00
Itamar Turner-Trauring
8633432980
Switch IStorageServer interface to be slightly different than RIStorageServer.
2021-09-15 10:33:51 -04:00
Itamar Turner-Trauring
59fab99d9d
Nothing uses RIStorageServer.renew_lease, so removing it is simple.
2021-08-19 16:40:45 -04:00
Itamar Turner-Trauring
0d0dd4dee9
Rip out all references to the unused IProgress API.
2021-03-31 10:35:25 -04:00
Itamar Turner-Trauring
6b38c8d1c9
More of test_system now passes on Python 3.
2021-02-03 11:24:47 -05:00
Jason R. Coombs
574613a892
Merge branch 'master' into 3399.mypy
2020-12-26 12:45:09 -05:00
Jason R. Coombs
090031cbfc
Remove confirm_share_allocation from interface (unused).
2020-12-18 10:55:20 -05:00
Jason R. Coombs
ea0c10ef83
Remove set_size, unused
2020-12-18 10:51:56 -05:00
Jean-Paul Calderone
18c18a0e1d
explain the inconsistent naming
2020-12-14 17:33:58 -05:00
Jean-Paul Calderone
7638064818
Merge remote-tracking branch 'origin/master' into 3532.test_node-no-mock
2020-12-14 09:32:33 -05:00
Jean-Paul Calderone
0cdf66a991
Make the Tor/I2P "provider" interfaces explicit
2020-12-11 10:35:22 -05:00
Jean-Paul Calderone
d7ec5a19be
Don't implement the stats gatherer or support configuring or talking to one
2020-12-09 10:34:16 -05:00
Jean-Paul Calderone
69d3dad646
Get rid of remote_host / get_remote_host
...
Nothing uses it and if we don't provide it we don't need getLocationHints
2020-12-08 10:37:31 -05:00
Jason R. Coombs
5f40c562eb
Remove self arguments to IProgress, which mypy caught as improper.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
dec6f6d647
Remove Interface subclass, as IURI is an interface. Fixes mypy error.
2020-11-29 13:57:46 -05:00
Itamar Turner-Trauring
d7b5230f0e
Explain why __remote_name__ is a native string.
2020-09-28 10:06:06 -04:00
Itamar Turner-Trauring
f796b8a7da
Fix typo.
2020-09-28 10:02:43 -04:00
Itamar Turner-Trauring
d19ae1e511
Apparently __remote_name__ needs to be a native string.
2020-09-25 14:00:18 -04:00
Itamar Turner-Trauring
d8c9affccb
Bunch more places that need to be bytes for protocol backwards compatibility.
2020-09-25 13:28:49 -04:00
Itamar Turner-Trauring
d5ba10544e
Keep interfaces more backwards compatible.
2020-08-25 12:08:59 -04:00
Itamar Turner-Trauring
6726c6ec5b
Merge remote-tracking branch 'origin/master' into 3374.codec-monitor-python-3-take-2
2020-08-25 11:48:31 -04:00
Itamar Turner-Trauring
41ad4aea91
Make imports work.
2020-08-18 13:10:57 -04:00
Itamar Turner-Trauring
24772616c2
Bytes not strings.
2020-08-07 14:13:20 -04:00
Itamar Turner-Trauring
0a2b797c49
Lint fix.
2020-08-07 13:32:12 -04:00
Itamar Turner-Trauring
7516a5526e
Port to Python 3.
2020-08-07 12:57:46 -04:00
Jean-Paul Calderone
d4b5de2e08
Merge pull request #653 from tahoe-lafs/3248.pass-config-to-get_storage_client
...
Pass the full _Config to IFoolscapStoragePlugin.get_storage_client
Fixes: ticket:3248
2019-08-23 09:04:23 -04:00
Jean-Paul Calderone
25c476aaa8
Merge pull request #654 from tahoe-lafs/3250.synchronous-get_storage_client
...
Synchronous IFoolscapStoragePlugin.get_storage_client
Fixes: ticket:3250
2019-08-23 08:44:52 -04:00
Jean-Paul Calderone
e62d2a5a27
In reality we cannot handle a Deferred here
...
... yet? This code is invoked from an `__init__` where async is always
tricky. Maybe we can invert the relationship someday.
2019-08-20 09:28:05 -04:00
Jean-Paul Calderone
64197f4ba4
Change the interface
2019-08-19 15:09:34 -04:00
Jean-Paul Calderone
a47463e032
Pass _Config instead of a smaller dict to get_client_resource
2019-08-19 11:21:03 -04:00
Jean-Paul Calderone
d69de15664
implement the feature
...
improve the test slightly, too, to verify the configuration supplied to the
plugin is as expected.
2019-08-03 06:39:31 -04:00
Jean-Paul Calderone
57160f65c6
Pass get_rref in to get_storage_client
...
plugins don't otherwise have a way to talk to the server.
2019-08-03 06:39:31 -04:00
Jean-Paul Calderone
2c49c97fcd
more unicode literals
2019-08-03 05:33:01 -04:00
Jean-Paul Calderone
8a22764fb1
Combine human_name and id
2019-08-03 05:33:01 -04:00
Jean-Paul Calderone
e10a032fc3
Add the basic plugin interfaces and some documentation
2019-08-03 05:33:01 -04:00
Jean-Paul Calderone
9f9f45e331
warn away potential users
2019-06-04 10:13:07 -04:00
Jean-Paul Calderone
97a4353c80
Update IServer with this new IStorageServer
2019-05-31 11:25:11 -04:00
meejah
05f48c3601
Various cleanups, fixes and improvements
...
Squashed all commits that were meejah's between
30d68fb499f300a393fa0ced5980229f4bb6efda
and
33c268ed3a8c63a809f4403e307ecc13d848b1ab
On the branch meejah:1382.markberger-rewrite-rebase.6 as
per review
2017-06-05 16:31:41 -06:00
David Stainton
e68b331bb1
Add servers of happiness hypothesis testing
...
Fix happiness test var names
Remove unused imports
Get rid of trailing whitespace
2017-06-05 16:26:46 -06:00
Mark Berger
17cff7a176
Implements 'Servers of Happiness' algorithm for upload
...
This is Mark Berger's original commits, from ticket #1382
2017-06-05 16:26:46 -06:00
Brian Warner
5cbe580d90
improve ConnectionStatus and welcome-page display
...
* replace "last_details" with "non_connected_statuses" dict
* rename "last_connection_summary" to just "summary"
* for connected servers, show other hints in a tooltip
* for not-yet-connected servers, show all hints in a list
* build the list (in STAN) on the server side, not using IContainer
2016-12-09 18:41:38 -08:00
Brian Warner
70db0db5bd
interface.py: cosmetic, rewrite docstrings as attributes
2016-12-09 18:41:38 -08:00
Brian Warner
48fc14bd30
add IConnectionStatus and implementation
...
also a function to build one from a foolscap.Reconnector
2016-12-08 15:41:37 -08:00
Brian Warner
d1d988410b
remove "key-generator" node type and client support
...
closes ticket:2783
2016-05-04 16:53:04 -07:00
Brian Warner
76f6d2d21a
create Tub inside NativeStorageServer, not broker
...
This makes IServer instances responsible for their own network
connections, which will help when we add HTTP-based servers in the
future. The StorageFarmBroker should not care about how the IServer uses
the network, it just provides the announcement (and local config).
2016-05-03 15:09:13 -07:00
meejah
db517e8edd
Progress API
...
- IProgress interface + PercentProgress implementation
- progress= args to many upload/download APIs
- ultimately for magic-folder
2016-04-12 00:30:50 -07:00