Documentation
¶
Overview ¶
Package inputfs provides the retained, read-only input root used during preparation. Version 1 supports Linux; every path component is opened relative to a retained descriptor with O_NOFOLLOW, including symlinks whose targets remain in the root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
Root retains the identity of one input directory until Close. Its methods are safe for concurrent use; callers must keep it open throughout preparation.
func FromDirectory ¶
FromDirectory retains its own duplicate of a trusted, already-open directory. The caller retains ownership of file. Descendant reads retain Open's confined no-symlink semantics; this constructor does not resolve a pathname.
func Open ¶
Open retains an existing directory without following any symlink component. Renaming or replacing the original root pathname does not redirect reads.
func (*Root) OpenRegular ¶
OpenRegular opens only a regular file, rejecting all symlink components and special files. Reads preserve InputError classification and check cancellation.