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.
| 45 | // instantiated once per agent connection and kept alive for the duration of the |
| 46 | // session. |
| 47 | type 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 | |
| 68 | var _ agentproto.DRPCAgentServer = &API{} |
| 69 |
nothing calls this directly
no outgoing calls
no test coverage detected