Documentation
¶
Index ¶
- Variables
- type Config
- type Entry
- type SearchMatch
- type Service
- func (s *Service) Append(ctx context.Context, path string, content string) error
- func (s *Service) List(ctx context.Context, path string) ([]Entry, error)
- func (s *Service) Mkdir(ctx context.Context, path string) error
- func (s *Service) Patch(ctx context.Context, path string, old string, new string) error
- func (s *Service) Read(ctx context.Context, path string) (string, error)
- func (s *Service) Remove(ctx context.Context, path string) error
- func (s *Service) Search(ctx context.Context, query string, maxResults int) ([]SearchMatch, error)
- func (s *Service) Stat(ctx context.Context, path string) (*Stat, error)
- func (s *Service) Write(ctx context.Context, path string, content string) error
- type Stat
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPathEscapesRoot = errors.New("filesystem: path escapes root") ErrFileTooLarge = errors.New("filesystem: file too large") )
View Source
var ErrOldNotFound = errors.New("filesystem: old string not found in file")
Functions ¶
This section is empty.
Types ¶
type SearchMatch ¶
Click to show internal directories.
Click to hide internal directories.