Documentation ¶
Index ¶
- Constants
- type Location
- type Metadata
- type State
- func (st *State) ChunkExists(chunkChecksum [32]byte) bool
- func (st *State) DataExists(checksum [32]byte) bool
- func (st *State) DeleteSnapshot(snapshotChecksum [32]byte) error
- func (st *State) Derive() *State
- func (st *State) DirectoryExists(checksum [32]byte) bool
- func (st *State) Dirty() bool
- func (st *State) Extends(stateID [32]byte)
- func (st *State) FileExists(checksum [32]byte) bool
- func (st *State) GetPackfileForChunk(chunkChecksum [32]byte) ([32]byte, bool)
- func (st *State) GetPackfileForData(blobChecksum [32]byte) ([32]byte, bool)
- func (st *State) GetPackfileForDirectory(directoryChecksum [32]byte) ([32]byte, bool)
- func (st *State) GetPackfileForFile(fileChecksum [32]byte) ([32]byte, bool)
- func (st *State) GetPackfileForObject(objectChecksum [32]byte) ([32]byte, bool)
- func (st *State) GetSubpartForChunk(chunkChecksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (st *State) GetSubpartForData(checksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (st *State) GetSubpartForDirectory(checksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (st *State) GetSubpartForFile(checksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (st *State) GetSubpartForObject(objectChecksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (st *State) GetSubpartForSnapshot(checksum [32]byte) ([32]byte, uint32, uint32, bool)
- func (st *State) ListChunks() <-chan [32]byte
- func (st *State) ListObjects() <-chan [32]byte
- func (st *State) ListSnapshots() <-chan [32]byte
- func (st *State) Merge(stateID [32]byte, deltaState *State)
- func (st *State) ObjectExists(objectChecksum [32]byte) bool
- func (st *State) ResetDirty()
- func (st *State) Serialize() ([]byte, error)
- func (st *State) SetPackfileForChunk(packfileChecksum [32]byte, chunkChecksum [32]byte, packfileOffset uint32, ...)
- func (st *State) SetPackfileForData(packfileChecksum [32]byte, blobChecksum [32]byte, packfileOffset uint32, ...)
- func (st *State) SetPackfileForDirectory(packfileChecksum [32]byte, directoryChecksum [32]byte, packfileOffset uint32, ...)
- func (st *State) SetPackfileForFile(packfileChecksum [32]byte, fileChecksum [32]byte, packfileOffset uint32, ...)
- func (st *State) SetPackfileForObject(packfileChecksum [32]byte, objectChecksum [32]byte, packfileOffset uint32, ...)
- func (st *State) SetPackfileForSnapshot(packfileChecksum [32]byte, blobChecksum [32]byte, packfileOffset uint32, ...)
Constants ¶
View Source
const VERSION = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { IdToChecksum map[uint64][32]byte Chunks map[uint64]Location Objects map[uint64]Location Files map[uint64]Location Directories map[uint64]Location Datas map[uint64]Location Snapshots map[uint64]Location DeletedSnapshots map[uint64]time.Time Metadata Metadata // contains filtered or unexported fields }
func NewFromBytes ¶
func (*State) ChunkExists ¶
func (*State) DataExists ¶
func (*State) DeleteSnapshot ¶
func (*State) DirectoryExists ¶
func (*State) FileExists ¶
func (*State) GetPackfileForChunk ¶
func (*State) GetPackfileForData ¶
func (*State) GetPackfileForDirectory ¶
func (*State) GetPackfileForFile ¶
func (*State) GetPackfileForObject ¶
func (*State) GetSubpartForChunk ¶
func (*State) GetSubpartForData ¶
func (*State) GetSubpartForDirectory ¶
func (*State) GetSubpartForFile ¶
func (*State) GetSubpartForObject ¶
func (*State) GetSubpartForSnapshot ¶
func (*State) ListChunks ¶
func (*State) ListObjects ¶
func (*State) ListSnapshots ¶
func (*State) ObjectExists ¶
func (*State) ResetDirty ¶
func (st *State) ResetDirty()
func (*State) SetPackfileForChunk ¶
func (*State) SetPackfileForData ¶
func (*State) SetPackfileForDirectory ¶
func (*State) SetPackfileForFile ¶
func (*State) SetPackfileForObject ¶
Click to show internal directories.
Click to hide internal directories.