class documentation
class BucketBasedObjectStore(PackBasedObjectStore):
Known subclasses: dulwich.cloud.gcs.GcsObjectStore
Constructor: BucketBasedObjectStore(pack_compression_level, pack_index_version, pack_delta_window_size, pack_window_memory, ...)
Object store implementation that uses a bucket store like S3 as backend.
| Method | add |
Add a new pack to this object store. |
| Method | delete |
Delete a loose object (no-op for bucket stores). |
| Method | pack |
Pack loose objects. Returns number of objects packed. |
| Method | _get |
Undocumented |
| Method | _get |
Undocumented |
| Method | _iter |
Iterate over the SHAs of all loose objects. |
| Method | _iter |
Undocumented |
| Method | _remove |
Remove a pack by name. Subclasses should implement this. |
| Method | _update |
Undocumented |
| Method | _upload |
Undocumented |
Inherited from PackBasedObjectStore:
| Method | __contains__ |
Check if a particular object is present by SHA1. |
| Method | __del__ |
Warn if the object store is being deleted with unclosed packs. |
| Method | __init__ |
Initialize a PackBasedObjectStore. |
| Method | __iter__ |
Iterate over the SHAs that are present in this store. |
| Method | add |
Add a set of objects to this object store. |
| Method | add |
Add pack data to this object store. |
| Method | close |
Close the object store and release resources. |
| Method | contains |
Check if a particular object is present by SHA1 and is loose. |
| Method | contains |
Check if a particular object is present by SHA1 and is packed. |
| Method | count |
Count the number of pack files. |
| Method | generate |
Generate bitmap indexes for all packs that don't have them. |
| Method | generate |
Generate pack data objects for a set of wants/haves. |
| Method | get |
Obtain the raw fulltext for an object. |
| Method | get |
Get the best reachability provider for the object store. |
| Method | get |
Obtain the unpacked object. |
| Method | iter |
Iterate over a subset of objects, yielding UnpackedObject instances. |
| Method | iterobjects |
Iterate over a subset of objects in the store. |
| Method | repack |
Repack the packs in this repository. |
| Instance Variable | delta |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | packed |
Undocumented |
| Property | alternates |
Return list of alternate object stores. |
| Property | packs |
List with pack objects. |
| Method | _add |
Add a newly appeared pack to the cache by path. |
| Method | _clear |
Undocumented |
| Method | _enforce |
Evict least-recently-used packs if the memory limit is exceeded. |
| Method | _iter |
Iterate over the SHAs of all the objects in alternate stores. |
| Method | _iter |
Undocumented |
| Method | _mark |
Mark a pack as recently used for LRU tracking. |
| Method | _remove |
Undocumented |
| Method | _total |
Return the total mmapped memory across all cached packs. |
| Instance Variable | _pack |
Undocumented |
| Instance Variable | _pack |
Undocumented |
Inherited from BaseObjectStore (via PackBasedObjectStore, PackCapableObjectStore):
| Method | __getitem__ |
Obtain an object by SHA1. |
| Method | add |
Add a single object to this object store. |
| Method | determine |
Determine which objects are wanted based on refs. |
| Method | find |
Find which revisions this store has in common using graphwalker. |
| Method | find |
Find the missing objects required for a set of revisions. |
| Method | get |
Get the commit graph for this object store. |
| Method | get |
Get the modification time of an object. |
| Method | iter |
Iterate over all SHA1s that start with a given prefix. |
| Method | iter |
Iterate the contents of a tree and all subtrees. |
| Method | peel |
Peel all tags from a SHA. |
| Method | prune |
Prune/clean up this object store. |
| Method | tree |
Find the differences between the contents of two trees. |
| Method | write |
Write a commit graph file for this object store. |
| Instance Variable | object |
Undocumented |
| Method | _get |
Return the current available depth for the given head. |
Add a new pack to this object store.
- Returns: Fileobject to write to, a commit function to
- call when the pack is finished and an abort function.
Delete a loose object (no-op for bucket stores).
Bucket-based stores don't have loose objects, so this is a no-op.
| Parameters | |
sha:ObjectID | SHA of the object to delete |
overridden in
dulwich.cloud.gcs.GcsObjectStoreRemove a pack by name. Subclasses should implement this.