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

Function shouldDeleteKey

coderd/cryptokeys/rotate.go:268–270  ·  view source on GitHub ↗
(key database.CryptoKey, now time.Time)

Source from the content-addressed store, hash-verified

266}
267
268func shouldDeleteKey(key database.CryptoKey, now time.Time) bool {
269 return key.DeletesAt.Valid && !now.Before(key.DeletesAt.Time.UTC())
270}
271
272func shouldRotateKey(key database.CryptoKey, keyDuration time.Duration, now time.Time) bool {
273 // If deletes_at is set, we've already inserted a key.

Callers 1

rotateKeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected