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

Method CanVerify

coderd/database/modelmethods.go:861–865  ·  view source on GitHub ↗
(now time.Time)

Source from the content-addressed store, hash-verified

859}
860
861func (k CryptoKey) CanVerify(now time.Time) bool {
862 hasSecret := k.Secret.Valid
863 isBeforeDeletion := !k.DeletesAt.Valid || now.Before(k.DeletesAt.Time)
864 return hasSecret && isBeforeDeletion
865}
866
867func (r GetProvisionerJobsByOrganizationAndStatusWithQueuePositionAndProvisionerRow) RBACObject() rbac.Object {
868 return r.ProvisionerJob.RBACObject()

Callers 2

CanSignMethod · 0.95
checkKeyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected