ConnectRPC20 returns a dRPC client to the Agent API v2.0. Notably, it is missing GetAnnouncementBanners, but is useful when you want to be maximally compatible with Coderd Release Versions from 2.9+ Deprecated: use ConnectRPC20WithTailnet
(ctx context.Context)
| 171 | // Release Versions from 2.9+ |
| 172 | // Deprecated: use ConnectRPC20WithTailnet |
| 173 | func (c *Client) ConnectRPC20(ctx context.Context) (proto.DRPCAgentClient20, error) { |
| 174 | conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 0), "") |
| 175 | if err != nil { |
| 176 | return nil, err |
| 177 | } |
| 178 | return proto.NewDRPCAgentClient(conn), nil |
| 179 | } |
| 180 | |
| 181 | // ConnectRPC20WithTailnet returns a dRPC client to the Agent API v2.0. Notably, it is missing |
| 182 | // GetAnnouncementBanners, but is useful when you want to be maximally compatible with Coderd |
nothing calls this directly
no test coverage detected