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

Function NewClient

agent/agenttest/client.go:37–45  ·  view source on GitHub ↗
(t testing.TB,
	logger slog.Logger,
	agentID uuid.UUID,
	manifest agentsdk.Manifest,
	statsChan chan *agentproto.Stats,
	coordinator tailnet.Coordinator,
)

Source from the content-addressed store, hash-verified

35const statsInterval = 500 * time.Millisecond
36
37func NewClient(t testing.TB,
38 logger slog.Logger,
39 agentID uuid.UUID,
40 manifest agentsdk.Manifest,
41 statsChan chan *agentproto.Stats,
42 coordinator tailnet.Coordinator,
43) *Client {
44 return NewClientWithSecrets(t, logger, agentID, manifest, nil, statsChan, coordinator)
45}
46
47// NewClientWithSecrets is like NewClient but also injects user
48// secrets into the agent's proto manifest. Separate from NewClient

Calls 1

NewClientWithSecretsFunction · 0.85