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

Function toSDK

coderd/cryptokeys/cache.go:396–404  ·  view source on GitHub ↗
(key database.CryptoKey)

Source from the content-addressed store, hash-verified

394}
395
396func toSDK(key database.CryptoKey) codersdk.CryptoKey {
397 return codersdk.CryptoKey{
398 Feature: codersdk.CryptoKeyFeature(key.Feature),
399 Sequence: key.Sequence,
400 StartsAt: key.StartsAt,
401 DeletesAt: key.DeletesAt.Time,
402 Secret: key.Secret.String,
403 }
404}

Callers 1

toSDKKeysFunction · 0.85

Calls 1

CryptoKeyFeatureTypeAlias · 0.92

Tested by

no test coverage detected