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

Method Entitlements

codersdk/deployment.go:549–560  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

547}
548
549func (c *Client) Entitlements(ctx context.Context) (Entitlements, error) {
550 res, err := c.Request(ctx, http.MethodGet, "/api/v2/entitlements", nil)
551 if err != nil {
552 return Entitlements{}, err
553 }
554 defer res.Body.Close()
555 if res.StatusCode != http.StatusOK {
556 return Entitlements{}, ReadBodyAsError(res)
557 }
558 var ent Entitlements
559 return ent, json.NewDecoder(res.Body).Decode(&ent)
560}
561
562type PostgresAuth string
563

Callers 11

templateCreateMethod · 0.80
templateEditMethod · 0.80
TestEntitlementsFunction · 0.80
TestManagedAgentLimitFunction · 0.80
TestReplicasFunction · 0.80
featuresListMethod · 0.80
verifyLicenseMethod · 0.80
DeploymentInfoFunction · 0.80

Calls 3

RequestMethod · 0.95
ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65

Tested by 5

TestEntitlementsFunction · 0.64
TestManagedAgentLimitFunction · 0.64
TestReplicasFunction · 0.64