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

Function convertLicense

enterprise/coderd/licenses.go:342–349  ·  view source on GitHub ↗
(dl database.License, c jwt.MapClaims)

Source from the content-addressed store, hash-verified

340}
341
342func convertLicense(dl database.License, c jwt.MapClaims) codersdk.License {
343 return codersdk.License{
344 ID: dl.ID,
345 UUID: dl.UUID,
346 UploadedAt: dl.UploadedAt,
347 Claims: c,
348 }
349}
350
351func convertLicenses(licenses []database.License) ([]codersdk.License, error) {
352 out := make([]codersdk.License, 0, len(licenses))

Callers 2

postLicenseMethod · 0.85
convertLicensesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected