(now time.Time)
| 859 | } |
| 860 | |
| 861 | func (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 | |
| 867 | func (r GetProvisionerJobsByOrganizationAndStatusWithQueuePositionAndProvisionerRow) RBACObject() rbac.Object { |
| 868 | return r.ProvisionerJob.RBACObject() |