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(root *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 ErrLocked = errors.New("directory is locked by another process")
ErrLocked reports that another process holds the directory lock.
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 ¶
func ValidateLocalPath ¶
Types ¶
This section is empty.