Documentation
¶
Overview ¶
Package agentstorage owns authorization and canonical resolution for paths supplied through user, run, and MCP surfaces. Framework-trusted storage operations use the low-level storage package directly.
Index ¶
- type Caller
- type ListRoot
- type Operation
- type ResolvedPath
- type Service
- func (s *Service) FilterList(ctx context.Context, caller Caller, agentID uuid.UUID, paths []string) ([]ResolvedPath, error)
- func (s *Service) ListRoots(ctx context.Context, caller Caller, agentID uuid.UUID) ([]ListRoot, error)
- func (s *Service) Resolve(ctx context.Context, caller Caller, agentID uuid.UUID, path string, ...) (ResolvedPath, error)
- func (s *Service) ResolveForRun(ctx context.Context, agentID, runID uuid.UUID, path string, op Operation) (ResolvedPath, error)
- func (s *Service) ResolveForRuntime(ctx context.Context, scope wire.RuntimeContext, path string, op Operation) (ResolvedPath, error)
- func (s *Service) ResolveSubdomain(ctx context.Context, p authz.Principal, agentID uuid.UUID, path string) (ResolvedPath, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListRoot ¶
type ListRoot struct {
ResolvedPath
DirectoryPath string
Description string
}
type ResolvedPath ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) FilterList ¶
func (*Service) ResolveForRun ¶
func (*Service) ResolveForRuntime ¶ added in v0.7.0
func (s *Service) ResolveForRuntime(ctx context.Context, scope wire.RuntimeContext, path string, op Operation) (ResolvedPath, error)
ResolveForRuntime applies the broker's live access ceiling to the durable run identity. A grant downgrade cannot retain access through an older run snapshot.
func (*Service) ResolveSubdomain ¶ added in v0.7.0
func (s *Service) ResolveSubdomain(ctx context.Context, p authz.Principal, agentID uuid.UUID, path string) (ResolvedPath, error)
ResolveSubdomain derives directory access from the admitted principal. HTTP callers cannot supply an access level or a different user's storage scope.
Click to show internal directories.
Click to hide internal directories.