Documentation
¶
Index ¶
- Constants
- func ReadCustom(fileName string, attrName string, data proto.Message) error
- func SyncOperations(op Op) (func(string) Data, func())
- func WriteCustom(fileName string, attrName string, data proto.Message) error
- type Async
- type Attr
- type Data
- type FetchFunc
- type FileWriter
- type HashKey
- type Op
Constants ¶
View Source
const HashSize = blake2b.Size256
Variables ¶
This section is empty.
Functions ¶
func SyncOperations ¶
Types ¶
type Data ¶
type Data struct { sys.FileInfo Hash []byte Error error Operation Op Hashed bool // the file has just been hashed Changed bool // the file had attributes, but they are no longer valid VerifyFailed bool // contains filtered or unexported fields }
func (*Data) GetModTime ¶
type FileWriter ¶
type FileWriter struct { Open func(fileName string, fileFlags int, filePerm os.FileMode) error Write func([]byte) error Close func(fileTimeNs int64) (Attr, error) }
func NewFileWriter ¶
func NewFileWriter() FileWriter
Click to show internal directories.
Click to hide internal directories.