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

Method Fetch

coderd/cryptokeys/cache.go:69–76  ·  view source on GitHub ↗
(ctx context.Context, feature codersdk.CryptoKeyFeature)

Source from the content-addressed store, hash-verified

67}
68
69func (d *DBFetcher) Fetch(ctx context.Context, feature codersdk.CryptoKeyFeature) ([]codersdk.CryptoKey, error) {
70 keys, err := d.DB.GetCryptoKeysByFeature(ctx, database.CryptoKeyFeature(feature))
71 if err != nil {
72 return nil, xerrors.Errorf("get crypto keys by feature: %w", err)
73 }
74
75 return toSDKKeys(keys), nil
76}
77
78// cache implements the caching functionality for both signing and encryption keys.
79type cache struct {

Callers

nothing calls this directly

Calls 4

CryptoKeyFeatureTypeAlias · 0.92
toSDKKeysFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected