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

Method ConnectRPC26

codersdk/agentsdk/agentsdk.go:267–275  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

265// ConnectRPC26 returns a dRPC client to the Agent API v2.6. It is useful when you want to be
266// maximally compatible with Coderd Release Versions from 2.24+
267func (c *Client) ConnectRPC26(ctx context.Context) (
268 proto.DRPCAgentClient26, tailnetproto.DRPCTailnetClient26, error,
269) {
270 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 6), "")
271 if err != nil {
272 return nil, nil, err
273 }
274 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
275}
276
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+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected