l.c.v._.BranchFileSystemClient : class documentation
Part of lp.codehosting.vfs
View In Hierarchy
Wrapper for some methods of the codehosting endpoint.
Instances of this class wrap the methods of the codehosting endpoint
required by the VFS code, specialized for a particular user.
The wrapper also caches the results of calls to translatePath in order to
avoid a large number of roundtrips. In the normal course of operation, our
Bazaar transport translates virtual paths to real paths on disk using this
client. It does this many, many times for a single Bazaar operation, so we
cache the results here.
||Construct a caching codehosting_endpoint.
||Create a Launchpad
IBranch in the database.
||Mark a branch as needing to be mirrored.
||Return the part of 'path' that the endpoint actually matched.
||Cache the given 'transport_tuple' results for 'path'.
||Get the cached 'transport_tuple' for 'path'.
Construct a caching codehosting_endpoint.
|Parameters||codehosting_endpoint||An XML-RPC proxy that implements
callRemote and returns Deferreds.|
|user_id||The database ID of the user who will be making these
requests. An integer.|
|expiry_time||If supplied, only cache the results of
translatePath for this many seconds. If not supplied, cache the
results of translatePath for as long as this instance exists.|
|seen_new_branch_hook||A callable that will be called with the
unique_name of each new branch that is accessed.|
Return the part of 'path' that the endpoint actually matched.
Cache the given 'transport_tuple' results for 'path'.
|Returns||the 'transport_tuple' as given, so we can use this as a
Get the cached 'transport_tuple' for 'path'.
Create a Launchpad
in the database.
This raises any Faults that might be raised by the
createBranch method, so for more information
|Parameters||branch_path||The path to the branch to create.|
Deferred that fires the ID of the created branch.
API Documentation for Launchpad, generated by pydoctor at 2018-05-27 00:00:04.
Mark a branch as needing to be mirrored.
|Parameters||branch_id||The database ID of the branch.|