Documentation ¶
Index ¶
- type Index
- func (index *Index) ChunkExists(chunkChecksum [32]byte) bool
- func (index *Index) GetPackfileForChunk(chunkChecksum [32]byte) ([32]byte, bool)
- func (index *Index) GetPackfileForObject(objectChecksum [32]byte) ([32]byte, bool)
- func (index *Index) GetSubpartForChunk(chunkChecksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (index *Index) GetSubpartForObject(objectChecksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (index *Index) IsDirty() bool
- func (index *Index) ListContains() [][32]byte
- func (index *Index) LookupChecksum(checksumID uint32) [32]byte
- func (index *Index) Merge(indexID [32]byte, deltaIndex *Index)
- func (index *Index) ObjectExists(objectChecksum [32]byte) bool
- func (index *Index) ResetDirty()
- func (index *Index) Serialize() ([]byte, error)
- func (index *Index) SetPackfileForChunk(packfileChecksum [32]byte, chunkChecksum [32]byte, packfileOffset uint32, ...)
- func (index *Index) SetPackfileForObject(packfileChecksum [32]byte, objectChecksum [32]byte, packfileOffset uint32, ...)
- type Subpart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { Checksums map[[32]byte]uint32 Chunks map[uint32]Subpart Objects map[uint32]Subpart Contains map[uint32]struct{} // contains filtered or unexported fields }
func NewFromBytes ¶
func (*Index) ChunkExists ¶
func (*Index) GetPackfileForChunk ¶
func (*Index) GetPackfileForObject ¶
func (*Index) GetSubpartForChunk ¶
func (*Index) GetSubpartForObject ¶
func (*Index) ListContains ¶
func (*Index) LookupChecksum ¶
func (*Index) ObjectExists ¶
func (*Index) ResetDirty ¶
func (index *Index) ResetDirty()
func (*Index) SetPackfileForChunk ¶
Click to show internal directories.
Click to hide internal directories.