Documentation ¶
Index ¶
- func CopyLocalToLocal(sourcefile string, targetfile string, h *hasher.Hasher, chunksize int) error
- type LocalFile
- func (lf *LocalFile) BuildCache(h *hasher.Hasher, chunksize int) error
- func (lf *LocalFile) Close() error
- func (lf *LocalFile) CloseAndRemove() error
- func (lf *LocalFile) GetAllChunks() (int, chan structs.ChunkStream)
- func (lf *LocalFile) GetChunk(chunkNo uint64) (structs.Chunk, error)
- func (lf *LocalFile) GetFileInfo() (structs.FileData, error)
- func (lf *LocalFile) LoadCache() error
- func (lf *LocalFile) ReadChunkData(filepos int64) ([]byte, int, error)
- func (lf *LocalFile) SetFilesize(newsize int64) error
- func (lf *LocalFile) WriteChunkData(filepos int64, data []byte, datalen int) error
- type SourceFile
- type TargetFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalFile ¶
type LocalFile struct {
// contains filtered or unexported fields
}
func OpenLocalSource ¶
func OpenOrCreateLocalTarget ¶
func (*LocalFile) BuildCache ¶
func (*LocalFile) CloseAndRemove ¶
func (*LocalFile) GetAllChunks ¶
func (lf *LocalFile) GetAllChunks() (int, chan structs.ChunkStream)
func (*LocalFile) ReadChunkData ¶
func (*LocalFile) SetFilesize ¶
type SourceFile ¶
Click to show internal directories.
Click to hide internal directories.