class documentation
class SwiftPackData(PackData):
The data contained in a packfile.
We use the SwiftPackReader to read bytes from packs stored in Swift using the Range header feature of Swift.
Method | __init__ |
Initialize a SwiftPackReader |
Method | close |
Undocumented |
Method | get |
Given an offset in to the packfile return the object that is there. |
Method | get |
Return the expected checksum stored in this pack. |
Instance Variable | pack |
Undocumented |
Instance Variable | pack |
Undocumented |
Instance Variable | scon |
Undocumented |
Instance Variable | _filename |
Undocumented |
Instance Variable | _header |
Undocumented |
Instance Variable | _num |
Undocumented |
Instance Variable | _offset |
Undocumented |
Inherited from PackData
:
Class Method | from |
Undocumented |
Class Method | from |
Undocumented |
Method | __enter__ |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __len__ |
Returns the number of objects in this pack. |
Method | calculate |
Calculate the checksum for this pack. |
Method | check |
Check the consistency of this pack. |
Method | create |
Create an index file for this data file. |
Method | create |
Create a version 1 file for this data file. |
Method | create |
Create a version 2 index file for this data file. |
Method | get |
Given offset in the packfile return compressed data that is there. |
Method | iterentries |
Yield entries summarizing the contents of this pack. |
Method | iterobjects |
Undocumented |
Method | sorted |
Return entries in this pack, sorted by SHA. |
Property | filename |
Undocumented |
Property | path |
Undocumented |
Method | _get |
Undocumented |
Method | _iter |
Undocumented |
Instance Variable | _file |
Undocumented |
Instance Variable | _size |
Undocumented |
overrides
dulwich.pack.PackData.__init__
Initialize a SwiftPackReader
Parameters | |
scon | a SwiftConnector instance |
filename | the pack filename |
overrides
dulwich.pack.PackData.get_object_at
Given an offset in to the packfile return the object that is there.
Using the associated index the location of an object can be looked up, and then the packfile can be asked directly for that object using this function.