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

Method CanSign

codersdk/deployment.go:5416–5420  ·  view source on GitHub ↗
(now time.Time)

Source from the content-addressed store, hash-verified

5414}
5415
5416func (c CryptoKey) CanSign(now time.Time) bool {
5417 now = now.UTC()
5418 isAfterStartsAt := !c.StartsAt.IsZero() && !now.Before(c.StartsAt)
5419 return isAfterStartsAt && c.CanVerify(now)
5420}
5421
5422func (c CryptoKey) CanVerify(now time.Time) bool {
5423 now = now.UTC()

Callers

nothing calls this directly

Calls 2

CanVerifyMethod · 0.95
IsZeroMethod · 0.45

Tested by

no test coverage detected