ConnectRPC21WithTailnet 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+
(ctx context.Context)
| 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+ |
| 207 | func (c *Client) ConnectRPC21WithTailnet(ctx context.Context) ( |
| 208 | proto.DRPCAgentClient21, tailnetproto.DRPCTailnetClient21, error, |
| 209 | ) { |
| 210 | conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 1), "") |
| 211 | if err != nil { |
| 212 | return nil, nil, err |
| 213 | } |
| 214 | return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil |
| 215 | } |
| 216 | |
| 217 | // ConnectRPC22 returns a dRPC client to the Agent API v2.2. It is useful when you want to be |
| 218 | // maximally compatible with Coderd Release Versions from 2.13+ |
nothing calls this directly
no test coverage detected