ConnectRPC21 returns a dRPC client to the Agent API v2.1. It is useful when you want to be maximally compatible with Coderd Release Versions from 2.12+ Deprecated: use ConnectRPC21WithTailnet
(ctx context.Context)
| 195 | // maximally compatible with Coderd Release Versions from 2.12+ |
| 196 | // Deprecated: use ConnectRPC21WithTailnet |
| 197 | func (c *Client) ConnectRPC21(ctx context.Context) (proto.DRPCAgentClient21, error) { |
| 198 | conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 1), "") |
| 199 | if err != nil { |
| 200 | return nil, err |
| 201 | } |
| 202 | return proto.NewDRPCAgentClient(conn), nil |
| 203 | } |
| 204 | |
| 205 | // ConnectRPC21WithTailnet returns a dRPC client to the Agent API v2.1. It is useful when you want to be |
| 206 | // maximally compatible with Coderd Release Versions from 2.12+ |
nothing calls this directly
no test coverage detected