Documentation ¶
Index ¶
- func IsFingerprintMismatch(err error) bool
- func MtimeFromInfo(info os.FileInfo) syscall.Timespec
- func MtimeFromStat(stat *syscall.Stat_t) syscall.Timespec
- type File
- func (f File) CacheKey() []byte
- func (f File) Check() error
- func (f File) CheckFile(file *os.File) error
- func (f File) Delete() error
- func (f File) Len() int64
- func (f File) Name() string
- func (f File) Open() (*os.File, error)
- func (f File) UnwrapCacheEntry(cacheKey, cacheValue []byte) []byte
- func (f File) WrapCacheEntry(data []byte) []byte
- type FingerprintMismatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFingerprintMismatch ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) Delete ¶
Remove a file only if it matches. Returns a non-nil error if the file exits and doesn't match, or if os.Remove fails for a non-NotExist reason.
func (File) UnwrapCacheEntry ¶
func (File) WrapCacheEntry ¶
type FingerprintMismatch ¶
type FingerprintMismatch struct {
// contains filtered or unexported fields
}
func (FingerprintMismatch) Error ¶
func (e FingerprintMismatch) Error() string
Click to show internal directories.
Click to hide internal directories.