Documentation
¶
Index ¶
- Constants
- type Index
- func (index *Index) AddChunk(chunk *objects.Chunk) error
- func (index *Index) AddObject(object *objects.Object) error
- func (i *Index) Checksum() []byte
- func (index *Index) ChunkExists(checksum [32]byte) (bool, error)
- func (index *Index) Close() error
- func (index *Index) GetChunkLength(checksum [32]byte) (uint32, bool, error)
- func (index *Index) LinkPathnameToObject(pathnameChecksum [32]byte, object *objects.Object) error
- func (index *Index) ListChunks() <-chan [32]byte
- func (index *Index) ListObjects() <-chan [32]byte
- func (index *Index) LookupChunk(checksum [32]byte) (*objects.Chunk, error)
- func (index *Index) LookupObject(checksum [32]byte) (*objects.Object, error)
- func (index *Index) LookupObjectForPathnameChecksum(pathnameChecksum [32]byte) (*objects.Object, error)
- func (index *Index) ObjectExists(checksum [32]byte) (bool, error)
- func (i *Index) Serialize() ([]byte, error)
Constants ¶
View Source
const VERSION string = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) GetChunkLength ¶
func (*Index) LinkPathnameToObject ¶
func (*Index) ListChunks ¶
func (*Index) ListObjects ¶
func (*Index) LookupChunk ¶
func (*Index) LookupObject ¶
func (*Index) LookupObjectForPathnameChecksum ¶
Click to show internal directories.
Click to hide internal directories.