class documentation

class BucketBasedObjectStore(PackBasedObjectStore):

Known subclasses: dulwich.cloud.gcs.GcsObjectStore

View In Hierarchy

Object store implementation that uses a bucket store like S3 as backend.

Method add_pack Add a new pack to this object store.
Method _get_loose_object Undocumented
Method _get_pack Undocumented
Method _iter_loose_objects Iterate over the SHAs of all loose objects.
Method _iter_pack_names Undocumented
Method _remove_loose_object Undocumented
Method _remove_pack Undocumented
Method _update_pack_cache Undocumented
Method _upload_pack Undocumented

Inherited from PackBasedObjectStore:

Method __contains__ Check if a particular object is present by SHA1.
Method __init__ Undocumented
Method __iter__ Iterate over the SHAs that are present in this store.
Method add_objects Add a set of objects to this object store.
Method close Close any files opened by this object store.
Method contains_loose Check if a particular object is present by SHA1 and is loose.
Method contains_packed Check if a particular object is present by SHA1 and is packed.
Method get_raw Obtain the raw fulltext for an object.
Method pack_loose_objects Pack loose objects.
Method repack Repack the packs in this repository.
Instance Variable pack_compression_level Undocumented
Property alternates Undocumented
Property packs List with pack objects.
Method _add_cached_pack Add a newly appeared pack to the cache by path.
Method _clear_cached_packs Undocumented
Method _iter_alternate_objects Iterate over the SHAs of all the objects in alternate stores.
Method _iter_cached_packs Undocumented
Instance Variable _pack_cache Undocumented

Inherited from BaseObjectStore (via PackBasedObjectStore):

Method __getitem__ Obtain an object by SHA1.
Method add_object Add a single object to this object store.
Method add_pack_data Add pack data to this object store.
Method determine_wants_all Undocumented
Method find_common_revisions Find which revisions this store has in common using graphwalker.
Method find_missing_objects Find the missing objects required for a set of revisions.
Method generate_pack_contents Iterate over the contents of a pack file.
Method generate_pack_data Generate pack data objects for a set of wants/haves.
Method iter_shas Iterate over the objects for the specified shas.
Method iter_tree_contents Iterate the contents of a tree and all subtrees.
Method peel_sha Peel all tags from a SHA.
Method tree_changes Find the differences between the contents of two trees
Method _collect_ancestors Collect all ancestors of heads up to (excluding) those in common.
Method _get_depth Return the current available depth for the given head. For commits with multiple parents, the largest possible depth will be returned.
def add_pack(self):

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.
def _get_loose_object(self, sha):
def _get_pack(self, name):

Undocumented

def _iter_loose_objects(self):

Iterate over the SHAs of all loose objects.

def _iter_pack_names(self):

Undocumented

def _remove_loose_object(self, sha):
def _remove_pack(self, name):
def _update_pack_cache(self):
def _upload_pack(self, basename, pack_file, index_file):

Undocumented