Documentation ¶
Index ¶
- type BufferedChunk
- type Chunk
- type ChunkId
- type DeltaChunk
- type File
- type FingerprintMap
- type IdentifiedChunk
- type Repo
- func (r *Repo) Commit(source string)
- func (r *Repo) Differ() delta.Differ
- func (r *Repo) Export(exporter export.Exporter)
- func (r *Repo) Init()
- func (r *Repo) LoadChunkContent(id *ChunkId) *bytes.Reader
- func (r *Repo) Patcher() delta.Patcher
- func (r *Repo) Restore(destination string)
- func (r *Repo) StoreChunkContent(id *ChunkId, reader io.Reader)
- type RepoChunk
- type SketchMap
- type StoredChunk
- type TempChunk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedChunk ¶
type Chunk ¶
type Chunk interface { Reader() io.ReadSeeker Len() int }
type DeltaChunk ¶
type DeltaChunk struct { Source *ChunkId Patch []byte Size int // contains filtered or unexported fields }
func (*DeltaChunk) Len ¶
func (c *DeltaChunk) Len() int
TODO: Maybe return the size of the patch instead ?
func (*DeltaChunk) Reader ¶
func (c *DeltaChunk) Reader() io.ReadSeeker
func (*DeltaChunk) SetRepo ¶
func (c *DeltaChunk) SetRepo(r *Repo)
type FingerprintMap ¶
type IdentifiedChunk ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) LoadChunkContent ¶
LoadChunkContent loads a chunk from the repo directory. If the chunk is in cache, get it from cache, else read it from drive.
type StoredChunk ¶
type StoredChunk struct { Id *ChunkId // contains filtered or unexported fields }
func NewStoredChunk ¶
func NewStoredChunk(repo *Repo, id *ChunkId) *StoredChunk
func (*StoredChunk) GetId ¶
func (c *StoredChunk) GetId() *ChunkId
func (*StoredChunk) Len ¶
func (c *StoredChunk) Len() int
func (*StoredChunk) Reader ¶
func (c *StoredChunk) Reader() io.ReadSeeker
func (*StoredChunk) SetRepo ¶
func (c *StoredChunk) SetRepo(r *Repo)
type TempChunk ¶
type TempChunk struct {
Value []byte
}
func NewTempChunk ¶
func (*TempChunk) AppendFrom ¶
func (*TempChunk) Reader ¶
func (c *TempChunk) Reader() io.ReadSeeker
Click to show internal directories.
Click to hide internal directories.