Documentation
¶
Index ¶
Constants ¶
View Source
const PolicyPredicate = "https://witness.testifysec.com/policy/v0.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type CertConstraint ¶
type CertConstraint struct {
Roots []string `json:"roots"`
}
type ErrKeyIDMismatch ¶
func (ErrKeyIDMismatch) Error ¶
func (e ErrKeyIDMismatch) Error() string
type ErrMissingAttestation ¶
func (ErrMissingAttestation) Error ¶
func (e ErrMissingAttestation) Error() string
type ErrNoAttestations ¶
type ErrNoAttestations string
func (ErrNoAttestations) Error ¶
func (e ErrNoAttestations) Error() string
type ErrPolicyExpired ¶
func (ErrPolicyExpired) Error ¶
func (e ErrPolicyExpired) Error() string
type Functionary ¶
type Functionary struct { Type string `json:"type"` CertConstraint CertConstraint `json:"certConstraint,omitempty"` PublicKeyID string `json:"publickeyid,omitempty"` }
type Policy ¶
type Step ¶
type Step struct { Name string `json:"name"` Functionaries []Functionary `json:"functionaries"` Attestations []Attestation `json:"attestations"` }
func (Step) Verify ¶
func (s Step) Verify(attestCollections []attestation.Collection) error
Click to show internal directories.
Click to hide internal directories.