Documentation
¶
Overview ¶
Package storefile holds the file primitives the stores under the runner home share (the credential stores of pkg/runner/connection and pkg/runner/modelsignin, the MCP server store of pkg/runner/mcpinstall): an exclusive lock file a writer holds, waited for or tried, a 0600 write by rename, and a removal that takes a missing file as done.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock holds an exclusive lock on the file at path, made 0600 (its directory 0700) when missing, waiting for another process holding it, until the returned func is called. what names it in an error.
func RemoveIfThere ¶
RemoveIfThere removes path; a missing one is not an error.
func TryLock ¶
TryLock is Lock without waiting: held says another process, or another open file of this one, holds the lock, and nothing is held then.
func WriteAtomic ¶
WriteAtomic writes data 0600 beside path and renames it over path.
Types ¶
This section is empty.