Documentation
¶
Overview ¶
Package filesystem owns validated source snapshots and atomic replacement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStale = errors.New("source changed since it was read")
ErrStale reports that a source path no longer identifies the bytes read.
Functions ¶
Types ¶
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot is one immutable regular-file version eligible for replacement.
func ReadWithin ¶
ReadWithin captures one regular file without escaping its authorized root.
func ReadWithinLimit ¶
ReadWithinLimit captures one regular file without escaping its authorized root or allocating beyond the caller's byte limit.
Click to show internal directories.
Click to hide internal directories.