ConnectRPC28 returns a dRPC client to the Agent API v2.8. It is useful when you want to be maximally compatible with Coderd Release Versions from 2.31+
(ctx context.Context)
| 289 | // ConnectRPC28 returns a dRPC client to the Agent API v2.8. It is useful when you want to be |
| 290 | // maximally compatible with Coderd Release Versions from 2.31+ |
| 291 | func (c *Client) ConnectRPC28(ctx context.Context) ( |
| 292 | proto.DRPCAgentClient28, tailnetproto.DRPCTailnetClient28, error, |
| 293 | ) { |
| 294 | conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 8), "") |
| 295 | if err != nil { |
| 296 | return nil, nil, err |
| 297 | } |
| 298 | return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil |
| 299 | } |
| 300 | |
| 301 | // ConnectRPC28WithRole is like ConnectRPC28 but sends an explicit role |
| 302 | // query parameter to the server. Use "agent" for workspace agents to |
nothing calls this directly
no test coverage detected