NewAgent is a wrapper around NewPeer, creating a peer with Agent auth tied to its ID
(ctx context.Context, t testing.TB, coord tailnet.CoordinatorV2, name string)
| 73 | |
| 74 | // NewAgent is a wrapper around NewPeer, creating a peer with Agent auth tied to its ID |
| 75 | func NewAgent(ctx context.Context, t testing.TB, coord tailnet.CoordinatorV2, name string) *Peer { |
| 76 | id := uuid.New() |
| 77 | return NewPeer(ctx, t, coord, name, WithID(id), WithAuth(tailnet.AgentCoordinateeAuth{ID: id})) |
| 78 | } |
| 79 | |
| 80 | // NewClient is a wrapper around NewPeer, creating a peer with Client auth tied to the provided agentID |
| 81 | func NewClient(ctx context.Context, t testing.TB, coord tailnet.CoordinatorV2, name string, agentID uuid.UUID) *Peer { |