Documentation
¶
Overview ¶
Package runtimefs provides ordinary Runtime state files and process locks. It does not restrict the launching user or implement a sandbox.
Index ¶
- Variables
- func EnsurePrivateDir(path string) error
- func LockDirectory(root *os.Root) (func(), error)
- func MkdirPrivate(root *os.Root, name string) error
- func OpenPrivate(root *os.Root, name string, flags int) (*os.File, error)
- func PrivateDirectory(root *os.Root) error
- func ReadPrivate(root *os.Root, name string, limit int64) ([]byte, error)
- func ReadPrivatePath(path string, limit int64) ([]byte, error)
- func SyncDirectory(*os.Root) error
- func ValidateLocalPath(path string) error
- func WritePrivateAtomic(root *os.Root, name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
var ErrUnsafe = errors.New("Runtime state path unavailable or invalid")
Functions ¶
func EnsurePrivateDir ¶
EnsurePrivateDir creates state directories with normal account permissions.
func LockDirectory ¶
func OpenPrivate ¶
OpenPrivate uses default credential-file permissions when creating a file. Existing files retain the launching user's normal filesystem permissions.
func PrivateDirectory ¶
PrivateDirectory checks the storage type, not the account's access policy.
func ReadPrivate ¶
ReadPrivate reads a bounded regular state file.
func ReadPrivatePath ¶
ReadPrivatePath is for startup credentials outside an already-open root.
func SyncDirectory ¶
Windows has no POSIX directory fsync. The writer flushes the file before publication; this does not promise directory durability across power loss.
func ValidateLocalPath ¶
ValidateLocalPath checks local Windows spelling, not execution authority.
Types ¶
This section is empty.