MCPcopy Create free account
hub / github.com/coder/coder / ConnectRPC27

Method ConnectRPC27

codersdk/agentsdk/agentsdk.go:279–287  ·  view source on GitHub ↗

ConnectRPC27 returns a dRPC client to the Agent API v2.7. It is useful when you want to be maximally compatible with Coderd Release Versions from 2.30+

(ctx context.Context)

Source from the content-addressed store, hash-verified

277// ConnectRPC27 returns a dRPC client to the Agent API v2.7. It is useful when you want to be
278// maximally compatible with Coderd Release Versions from 2.30+
279func (c *Client) ConnectRPC27(ctx context.Context) (
280 proto.DRPCAgentClient27, tailnetproto.DRPCTailnetClient27, error,
281) {
282 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 7), "")
283 if err != nil {
284 return nil, nil, err
285 }
286 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
287}
288
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+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected