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

Method ExpiresAt

coderd/database/modelmethods.go:848–850  ·  view source on GitHub ↗
(keyDuration time.Duration)

Source from the content-addressed store, hash-verified

846}
847
848func (k CryptoKey) ExpiresAt(keyDuration time.Duration) time.Time {
849 return k.StartsAt.Add(keyDuration).UTC()
850}
851
852func (k CryptoKey) DecodeString() ([]byte, error) {
853 return hex.DecodeString(k.Secret.String)

Callers 4

TestRotatorFunction · 0.45
Test_rotateKeysFunction · 0.45
shouldRotateKeyFunction · 0.45
minStartsAtFunction · 0.45

Calls 1

AddMethod · 0.65

Tested by 2

TestRotatorFunction · 0.36
Test_rotateKeysFunction · 0.36