Documentation
¶
Overview ¶
Package resources owns the per-user, owner-scoped view of the sluggable proxy resources (connections, MCP servers, exec endpoints): the list of resources a principal owns, across all of their agents, with how many agents currently bind each one. It is read-only — resources are created and credentialed from an agent's needs (see service/needs); this surface is the owner's inventory, the connection/exec analogue of the git-credentials list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
ID uuid.UUID
Type string // connection | mcp_server | exec_endpoint
Slug string
Name string
AuthMode string
Authorized bool
AgentCount int32
CreatedAt pgtype.Timestamptz
LastUsedAt pgtype.Timestamptz
}
Resource is the wire shape for one owned resource. No secret material is carried — only what the owner inventory renders.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Delete ¶
Delete removes an owned resource. Its grants cascade and any binding need's pointer is nulled, so dependent agents fall back to an unbound need.