Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache implements sts.FileCache
type File ¶
type File struct {
Name string
Renamed string
Path string
Size int64
Time time.Time
Meta []byte
Hash string
SendTime int64
Done bool
// contains filtered or unexported fields
}
File is meant to implement as many of the file-typed interfaces as possible
func (*File) GetRenamed ¶
GetRenamed gets the new name, if applicable (empty otherwise)
type Logger ¶
type Logger struct {
DebugMode bool
// contains filtered or unexported fields
}
Logger mocks logging by just printing to stdout/stderr
type MissingError ¶
type MissingError struct {
// contains filtered or unexported fields
}
MissingError is a simple wrapper around the standard error
type RecoveredFile ¶
RecoveredFile is meant to be a recovered and fully allocated file
func (*RecoveredFile) Allocate ¶
func (f *RecoveredFile) Allocate(int64) (int64, int64)
Allocate does nothing
func (*RecoveredFile) GetPrev ¶
func (f *RecoveredFile) GetPrev() string
GetPrev returns any configured previous file
func (*RecoveredFile) IsAllocated ¶
func (f *RecoveredFile) IsAllocated() bool
IsAllocated is always true
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store mocks sts.FileSource
func (*Store) IsNotExist ¶
IsNotExist returns whether or not the provided error indicates a file is missing
Click to show internal directories.
Click to hide internal directories.