Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MoatTempPatterns = []TempDirPattern{
{Pattern: "agentops-aws-*", Description: "AWS credential helper directories"},
{Pattern: "moat-claude-staging-*", Description: "Claude configuration staging directories"},
{Pattern: "moat-codex-staging-*", Description: "Codex configuration staging directories"},
{Pattern: "moat-npm-*", Description: "npm credential configuration directories"},
}
MoatTempPatterns lists all temporary directory patterns created by moat
Functions ¶
func CleanOrphanedTempDirs ¶
func CleanOrphanedTempDirs(dirs []OrphanedTempDir, minAge time.Duration) error
CleanOrphanedTempDirs removes the specified orphaned temporary directories Re-verifies age before deletion to prevent race conditions
func FormatSize ¶
FormatSize formats a byte size into a human-readable string
Types ¶
type OrphanedTempDir ¶
type OrphanedTempDir struct {
Path string
Pattern string
Description string
ModTime time.Time
Size int64
}
OrphanedTempDir represents a temporary directory that may be orphaned
func FindOrphanedTempDirs ¶
func FindOrphanedTempDirs(minAge time.Duration) ([]OrphanedTempDir, error)
FindOrphanedTempDirs scans /tmp for moat temporary directories that are likely orphaned
type TempDirPattern ¶
TempDirPattern represents a temporary directory pattern created by moat
Click to show internal directories.
Click to hide internal directories.