Documentation ¶
Index ¶
- type Output
- func (o *Output) Print(out io.Writer) error
- func (o *Output) SetAttestationSignatureCheckFromError(err error)
- func (o *Output) SetAttestationSyntaxCheckFromError(err error)
- func (o *Output) SetImageAccessibleCheckFromError(err error)
- func (o *Output) SetImageSignatureCheckFromError(err error)
- func (o *Output) SetPolicyCheck(results []evaluator.Outcome)
- func (o Output) Successes() []evaluator.Result
- func (o Output) Violations() []evaluator.Result
- func (o Output) Warnings() []evaluator.Result
- type Outputs
- type VerificationStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct { ImageAccessibleCheck VerificationStatus `json:"imageAccessibleCheck"` ImageSignatureCheck VerificationStatus `json:"imageSignatureCheck"` AttestationSignatureCheck VerificationStatus `json:"attestationSignatureCheck"` AttestationSyntaxCheck VerificationStatus `json:"attestationSyntaxCheck"` PolicyCheck []evaluator.Outcome `json:"policyCheck"` ExitCode int `json:"-"` Signatures []signature.EntitySignature `json:"signatures,omitempty"` Attestations []attestation.Attestation `json:"attestations,omitempty"` ImageURL string `json:"-"` Detailed bool `json:"-"` Data []evaluator.Data `json:"-"` Policy policy.Policy `json:"-"` PolicyInput []byte `json:"-"` }
Output is a struct representing checks and exit code.
func (*Output) SetAttestationSignatureCheckFromError ¶
SetAttestationSignatureCheck sets the passed and result.message fields of the AttestationSignatureCheck to the given values.
func (*Output) SetAttestationSyntaxCheckFromError ¶
SetAttestationSyntaxCheck sets the passed and result.message fields of the AttestationSyntaxCheck to the given values.
func (*Output) SetImageAccessibleCheckFromError ¶
SetImageAccessibleCheck sets the passed and result.message fields of the ImageAccessibleCheck to the given values.
func (*Output) SetImageSignatureCheckFromError ¶
SetImageSignatureCheck sets the passed and result.message fields of the ImageSignatureCheck to the given values.
func (*Output) SetPolicyCheck ¶
SetPolicyCheck sets the PolicyCheck and ExitCode to the results and exit code of the Results
func (Output) Violations ¶
Violations aggregates and returns all violations.
type VerificationStatus ¶
type VerificationStatus struct { Passed bool `json:"passed"` Result *evaluator.Result `json:"result,omitempty"` }
VerificationStatus represents the status of a verification check.