MCPcopy Index your code
hub / github.com/coder/coder / ConnectRPC21

Method ConnectRPC21

codersdk/agentsdk/agentsdk.go:197–203  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

195// maximally compatible with Coderd Release Versions from 2.12+
196// Deprecated: use ConnectRPC21WithTailnet
197func (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+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected