MCPcopy Index your code
hub / github.com/coder/coder / API

Struct API

coderd/agentapi/api.go:47–66  ·  view source on GitHub ↗

API implements the DRPC agent API interface from agent/proto. This struct is instantiated once per agent connection and kept alive for the duration of the session.

Source from the content-addressed store, hash-verified

45// instantiated once per agent connection and kept alive for the duration of the
46// session.
47type API struct {
48 opts Options
49 *ManifestAPI
50 *AnnouncementBannerAPI
51 *StatsAPI
52 *LifecycleAPI
53 *AppsAPI
54 *MetadataAPI
55 *ResourcesMonitoringAPI
56 *LogsAPI
57 *ScriptsAPI
58 *ConnLogAPI
59 *SubAgentAPI
60 *BoundaryLogsAPI
61 *tailnet.DRPCService
62
63 cachedWorkspaceFields *CachedWorkspaceFields
64
65 mu sync.Mutex
66}
67
68var _ agentproto.DRPCAgentServer = &API{}
69

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected