Versions in this module Expand all Collapse all v0 v0.9.0 May 5, 2026 Changes in this version + const DefaultMaxFileBytes + const DefaultMaxRequestBytes + const DefaultMaxTotalDecodedBytes + func EnsureNoSymlinkInPath(root, relPath string, allowMissingLeaf bool) (string, error) + func IsValidationError(err error) bool + func SafeWrite(path string, data []byte, perm os.FileMode) error + func ValidatePath(namespace, filePath string) error + type BulkEntry struct + Content string + FilePath string + Namespace string + Workspace string + type BulkEntryError struct + Err error + Index int + func (e *BulkEntryError) Error() string + func (e *BulkEntryError) Unwrap() error + type Limits struct + MaxFileBytes int + MaxRequestBytes int + MaxTotalDecodedBytes int + func DefaultLimits() Limits + type Service struct + Limits Limits + Root string + func NewService(root string) *Service + func (s *Service) DeleteFile(namespace, filePath string) error + func (s *Service) ListFiles(namespace string) ([]string, error) + func (s *Service) ListNamespaces() ([]string, error) + func (s *Service) RemoveTree(wsDir string) error + func (s *Service) ResolveExistingNamespace(namespace string) (string, error) + func (s *Service) ResolvePath(namespace, filePath string, allowMissingLeaf bool) (string, error) + func (s *Service) SafeRoot() (string, error) + func (s *Service) UploadFile(req UploadRequest) (*UploadResult, error) + func (s *Service) UploadFiles(rawJSON string) ([]UploadResult, error) + type UploadRequest struct + ContentBase64 string + FilePath string + Namespace string + type UploadResult struct + FilePath string + Namespace string + Size int + type ValidationError struct + func (e *ValidationError) Error() string