Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbsolutePath ¶
type AbsolutePath string
func (AbsolutePath) Resolve ¶
func (absPath AbsolutePath) Resolve() string
type BlockMatch ¶
type Conflict ¶
type Conflict struct { Path *LocalPath FileInfo *os.FileInfo // contains filtered or unexported fields }
Register a conflict
type FileMatch ¶
type FileMatch struct { SrcSize int64 DstSize int64 BlockMatches []*BlockMatch }
func (*FileMatch) NotMatched ¶
type LocalPath ¶
type LocalPath struct { LocalStore fs.LocalStore RelPath string }
type LocalTemp ¶
Start a temp file to recieve changes on a local destination file. The temporary file is created with specified size and no contents.
type LocalTempCopy ¶
Copy a range of data known to already be in the local destination file.
func (*LocalTempCopy) Exec ¶
func (ltc *LocalTempCopy) Exec(srcStore fs.BlockStore) (err os.Error)
func (*LocalTempCopy) String ¶
func (ltc *LocalTempCopy) String() string
type PatchPlan ¶
type PatchPlan struct { Cmds []PatchCmd // contains filtered or unexported fields }
func NewPatchPlan ¶
func NewPatchPlan(srcStore fs.BlockStore, dstStore fs.LocalStore) *PatchPlan
type ReplaceWithTemp ¶
type ReplaceWithTemp struct {
Temp *LocalTemp
}
Replace the local file with its temporary
func (*ReplaceWithTemp) Exec ¶
func (rwt *ReplaceWithTemp) Exec(srcStore fs.BlockStore) (err os.Error)
func (*ReplaceWithTemp) String ¶
func (rwt *ReplaceWithTemp) String() string
type SrcFileDownload ¶
Copy a range of data from the source file to the destination file.
func (*SrcFileDownload) Exec ¶
func (sfd *SrcFileDownload) Exec(srcStore fs.BlockStore) os.Error
func (*SrcFileDownload) String ¶
func (sfd *SrcFileDownload) String() string
type SrcTempCopy ¶
type SrcTempCopy struct { Temp *LocalTemp SrcStrong string SrcOffset int64 TempOffset int64 Length int64 }
Copy a range of data from the source file into a local temp file.
func (*SrcTempCopy) Exec ¶
func (stc *SrcTempCopy) Exec(srcStore fs.BlockStore) os.Error
func (*SrcTempCopy) String ¶
func (stc *SrcTempCopy) String() string
Click to show internal directories.
Click to hide internal directories.