| 84 | } |
| 85 | |
| 86 | type policy struct { |
| 87 | ecc.EnterpriseContractPolicySpec |
| 88 | checkOpts *cosign.CheckOpts |
| 89 | choosenTime string |
| 90 | effectiveTime *time.Time |
| 91 | attestationTime *time.Time |
| 92 | identity cosign.Identity |
| 93 | ignoreRekor bool |
| 94 | skipImageSigCheck bool |
| 95 | skipAttSigCheck bool |
| 96 | } |
| 97 | |
| 98 | // PublicKeyPEM returns the PublicKey in PEM format. When SigVerifier is not |
| 99 | // initialized, the policy's PublicKey is returned only if it is already valid |
nothing calls this directly
no outgoing calls
no test coverage detected