(t testing.TB, logger slog.Logger, agentID uuid.UUID, manifest agentsdk.Manifest, statsChan chan *agentproto.Stats, coordinator tailnet.Coordinator, )
| 35 | const statsInterval = 500 * time.Millisecond |
| 36 | |
| 37 | func 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 |