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

Struct FakeAgentAPI

agent/agenttest/client.go:230–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230type FakeAgentAPI struct {
231 sync.Mutex
232 t testing.TB
233 logger slog.Logger
234
235 manifest *agentproto.Manifest
236 startupCh chan *agentproto.Startup
237 statsCh chan *agentproto.Stats
238 appHealthCh chan *agentproto.BatchUpdateAppHealthRequest
239 logsCh chan<- *agentproto.BatchCreateLogsRequest
240 lifecycleStates []codersdk.WorkspaceAgentLifecycle
241 metadata map[string]agentsdk.Metadata
242 timings []*agentproto.Timing
243 connectionReports []*agentproto.ReportConnectionRequest
244 subAgents map[uuid.UUID]*agentproto.SubAgent
245 subAgentDirs map[uuid.UUID]string
246 subAgentDisplayApps map[uuid.UUID][]agentproto.CreateSubAgentRequest_DisplayApp
247 subAgentApps map[uuid.UUID][]*agentproto.CreateSubAgentRequest_App
248
249 getAnnouncementBannersFunc func() ([]codersdk.BannerConfig, error)
250 getResourcesMonitoringConfigurationFunc func() (*agentproto.GetResourcesMonitoringConfigurationResponse, error)
251 pushResourcesMonitoringUsageFunc func(*agentproto.PushResourcesMonitoringUsageRequest) (*agentproto.PushResourcesMonitoringUsageResponse, error)
252}
253
254func (*FakeAgentAPI) UpdateAppStatus(context.Context, *agentproto.UpdateAppStatusRequest) (*agentproto.UpdateAppStatusResponse, error) {
255 panic("unimplemented")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected