Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsManagedRunDir ¶
IsManagedRunDir reports whether path resolves to a run directory (or one of its descendants) under the configured workspace roots.
func PrepareDefaultRoots ¶
func PrepareDefaultRoots() error
PrepareDefaultRoots eagerly creates the process workspace root.
Types ¶
type Manager ¶
type Manager struct {
PathExists func(string) bool
MkdirAll func(string, os.FileMode) error
NewGUID func() string
ReadFile func(string) ([]byte, error)
WriteFile func(string, []byte, os.FileMode) error
CanExec func(string) bool
}
Manager creates isolated run directories.
func (Manager) CreateRunDir ¶
CreateRunDir creates a GUID-named run directory under the configured workspace root.
func (Manager) IsManagedRunDir ¶
IsManagedRunDir reports whether path resolves to a run directory (or one of its descendants) under this manager's workspace roots.
func (Manager) PrepareRoots ¶
PrepareRoots ensures the workspace root exists on the preferred base.
func (Manager) SeedAgentsFile ¶
SeedAgentsFile copies the local library AGENTS seed into a run directory.
func (Manager) SelectBase ¶
SelectBase chooses /dev/shm when available and executable, else /tmp.