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

Method key

coderd/cryptokeys/cache.go:278–285  ·  view source on GitHub ↗
(sequence int32)

Source from the content-addressed store, hash-verified

276}
277
278func (c *cache) key(sequence int32) (codersdk.CryptoKey, bool) {
279 if sequence == latestSequence {
280 return c.keys[latestSequence], c.keys[latestSequence].CanSign(c.clock.Now())
281 }
282
283 key, ok := c.keys[sequence]
284 return key, ok
285}
286
287func checkKey(key codersdk.CryptoKey, sequence int32, now time.Time) (string, []byte, error) {
288 if sequence == latestSequence {

Callers 2

cryptoKeyMethod · 0.95

Calls 1

CanSignMethod · 0.45

Tested by

no test coverage detected