Documentation
¶
Overview ¶
Package fs provides filesystem-backed workspace stores.
It implements resource store, knowledge store, and state store variants.
Index ¶
- type KnowledgeStore
- type Option
- type StateStore
- type Store
- func (s *Store) Delete(ctx context.Context, kind, name string) error
- func (s *Store) Entries(ctx context.Context, kind string) ([]workspace.Entry, error)
- func (s *Store) Exists(ctx context.Context, kind, name string) (bool, error)
- func (s *Store) List(ctx context.Context, kind string) ([]string, error)
- func (s *Store) Load(ctx context.Context, kind, name string) ([]byte, error)
- func (s *Store) Root() string
- func (s *Store) Save(ctx context.Context, kind, name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KnowledgeStore ¶
type KnowledgeStore struct {
// contains filtered or unexported fields
}
KnowledgeStore is a filesystem-backed implementation of workspace.KnowledgeStore.
func NewKnowledgeStore ¶
func NewKnowledgeStore(runtimeRoot string) *KnowledgeStore
NewKnowledgeStore creates an FS-backed KnowledgeStore. If runtimeRoot is empty it defaults to workspace.RuntimeRoot().
func (*KnowledgeStore) DBPath ¶
func (s *KnowledgeStore) DBPath(_ context.Context) (string, error)
DBPath returns the application database path.
func (*KnowledgeStore) IndexBasePath ¶
IndexBasePath returns the base path for a user's embedding index.
func (*KnowledgeStore) SnapshotBasePath ¶
func (s *KnowledgeStore) SnapshotBasePath(_ context.Context) (string, error)
SnapshotBasePath returns the base path for MCP snapshot caches.
type StateStore ¶
type StateStore struct {
// contains filtered or unexported fields
}
StateStore is a filesystem-backed implementation of workspace.StateStore.
func NewStateStore ¶
func NewStateStore(stateRoot string) *StateStore
NewStateStore creates an FS-backed StateStore. If stateRoot is empty it defaults to workspace.StateRoot().
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a filesystem-backed implementation of workspace.Store.
func New ¶
New creates an FS-backed Store rooted at root. If root is empty it defaults to workspace.Root().