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

Method List

agent/agentcontainers/subagent.go:140–140  ·  view source on GitHub ↗

List returns a list of all agents.

(ctx context.Context)

Source from the content-addressed store, hash-verified

138type SubAgentClient interface {
139 // List returns a list of all agents.
140 List(ctx context.Context) ([]SubAgent, error)
141 // Create adds a new agent.
142 Create(ctx context.Context, agent SubAgent) (SubAgent, error)
143 // Delete removes an agent by its ID.

Callers 12

TestSSHFunction · 0.65
TestSSH_ContainerFunction · 0.65
startPtyFunction · 0.65
funcs.goFile · 0.65
TestIntegrationDockerFunction · 0.65
updateContainersMethod · 0.65
cleanupSubAgentsMethod · 0.65
TestAPIFunction · 0.65

Implementers 5

subAgentAPIClientagent/agentcontainers/subagent.go
noopSubAgentClientagent/agentcontainers/subagent.go
fakeSubAgentClientagent/agentcontainers/api_test.go
MockSubAgentClientagent/agentcontainers/acmock/acmock.go
MockSubAgentClientMockRecorderagent/agentcontainers/acmock/acmock.go

Calls

no outgoing calls

Tested by 8

TestSSHFunction · 0.52
TestSSH_ContainerFunction · 0.52
TestIntegrationDockerFunction · 0.52
TestAPIFunction · 0.52