Documentation
¶
Overview ¶
Package filesystem implements cap/filesystem.Service over the local disk (filesystem/local) and host-absolute atomic replace for runtime sidecars that already hold a resolved path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.3.33
New registers filesystem/local: local-disk cap/filesystem.Service over workspace.Resolve.
func TrimRedundantFSRootPrefix ¶ added in v0.3.33
TrimRedundantFSRootPrefix drops a leading fsRoot/ prefix when the fs store root is already fsRoot. Used by filesystem/local when models pass paths like work/upload/foo while config.root is work.
Types ¶
type Config ¶ added in v0.3.33
type Config struct {
// Root is directory relative to the workspace root; may use global: or local: prefix.
Root string `json:"root"`
// Unrestricted disables path confinement to Root (absolute paths and .. are allowed).
Unrestricted bool `json:"unrestricted,omitempty"`
}
Config is filesystem/local: a workspace-rooted disk store.
type IgnoreMatcher ¶
type IgnoreMatcher struct {
// contains filtered or unexported fields
}
IgnoreMatcher applies .gitignore-style patterns relative to a workspace root.
func LoadIgnoreMatcher ¶
func LoadIgnoreMatcher(workspaceRoot string) (*IgnoreMatcher, error)
LoadIgnoreMatcher reads the workspace-root .gitignore when present and always ignores .git, node_modules, and .env.