Class: Gem::Guardian::ProvenanceResult
- Inherits:
-
Data
- Object
- Data
- Gem::Guardian::ProvenanceResult
- Defined in:
- lib/gem/guardian/provenance_verifier.rb
Overview
Result object for a provenance verification attempt.
Instance Attribute Summary collapse
-
#actual_sha256 ⇒ Object
readonly
Returns the value of attribute actual_sha256.
-
#attestation_url ⇒ Object
readonly
Returns the value of attribute attestation_url.
-
#dependency ⇒ Object
readonly
Returns the value of attribute dependency.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#expected_sha256 ⇒ Object
readonly
Returns the value of attribute expected_sha256.
-
#github_release ⇒ Object
readonly
Returns the value of attribute github_release.
-
#issuer ⇒ Object
readonly
Returns the value of attribute issuer.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#trusted_publishing ⇒ Object
readonly
Returns the value of attribute trusted_publishing.
-
#workflow ⇒ Object
readonly
Returns the value of attribute workflow.
Instance Method Summary collapse
-
#verified? ⇒ Boolean
Returns true when provenance verification succeeded.
Instance Attribute Details
#actual_sha256 ⇒ Object (readonly)
Returns the value of attribute actual_sha256
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def actual_sha256 @actual_sha256 end |
#attestation_url ⇒ Object (readonly)
Returns the value of attribute attestation_url
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def attestation_url @attestation_url end |
#dependency ⇒ Object (readonly)
Returns the value of attribute dependency
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def dependency @dependency end |
#error ⇒ Object (readonly)
Returns the value of attribute error
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def error @error end |
#expected_sha256 ⇒ Object (readonly)
Returns the value of attribute expected_sha256
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def expected_sha256 @expected_sha256 end |
#github_release ⇒ Object (readonly)
Returns the value of attribute github_release
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def github_release @github_release end |
#issuer ⇒ Object (readonly)
Returns the value of attribute issuer
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def issuer @issuer end |
#ref ⇒ Object (readonly)
Returns the value of attribute ref
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def ref @ref end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def repository @repository end |
#status ⇒ Object (readonly)
Returns the value of attribute status
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def status @status end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def subject @subject end |
#trusted_publishing ⇒ Object (readonly)
Returns the value of attribute trusted_publishing
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def trusted_publishing @trusted_publishing end |
#workflow ⇒ Object (readonly)
Returns the value of attribute workflow
6 7 8 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 6 def workflow @workflow end |
Instance Method Details
#verified? ⇒ Boolean
Returns true when provenance verification succeeded.
11 12 13 |
# File 'lib/gem/guardian/provenance_verifier.rb', line 11 def verified? status == :verified end |