{"modulePath":"github.com/MiniMax-AI/OpenAgentCore","version":"v0.0.14","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package runtimefs\n\nPackage runtimefs provides ordinary Runtime state files and process locks. It does not restrict the launching user or implement a sandbox.\n\n## Variables\n\n```go\nvar ErrLocked = errors.New(\"directory is locked by another process\")\n```\nErrLocked reports that another process holds the directory lock.\n\n```go\nvar ErrUnsafe = errors.New(\"Runtime state path unavailable or invalid\")\n```\n\n## Functions\n\n```go\nfunc EnsurePrivateDir(path string) error\n```\nEnsurePrivateDir creates state directories with normal account permissions.\n\n```go\nfunc LockDirectory(root *os.Root) (func(), error)\n```\n\n```go\nfunc MkdirPrivate(root *os.Root, name string) error\n```\n\n```go\nfunc OpenPrivate(root *os.Root, name string, flags int) (*os.File, error)\n```\nOpenPrivate uses default credential-file permissions when creating a file. Existing files retain the launching user's normal filesystem permissions.\n\n```go\nfunc PrivateDirectory(root *os.Root) error\n```\nPrivateDirectory checks the storage type, not the account's access policy.\n\n```go\nfunc ReadPrivate(root *os.Root, name string, limit int64) ([]byte, error)\n```\nReadPrivate reads a bounded regular state file.\n\n```go\nfunc ReadPrivatePath(path string, limit int64) ([]byte, error)\n```\nReadPrivatePath is for startup credentials outside an already-open root.\n\n```go\nfunc SyncDirectory(root *os.Root) error\n```\n\n```go\nfunc ValidateLocalPath(path string) error\n```\n\n```go\nfunc WritePrivateAtomic(root *os.Root, name string, data []byte) error\n```\nWritePrivateAtomic writes a fresh state file before replacing the name. An old permissive target is replaced, never opened or repaired in place.\n\n","path":"github.com/MiniMax-AI/OpenAgentCore/internal/runtimefs","name":"runtimefs","synopsis":"Package runtimefs provides ordinary Runtime state files and process locks.","isRedistributable":true}
