Class: Grafeas::V1::BuildOccurrence
- Inherits:
-
Object
- Object
- Grafeas::V1::BuildOccurrence
- Extended by:
- Google::Protobuf::MessageExts::ClassMethods
- Includes:
- Google::Protobuf::MessageExts
- Defined in:
- proto_docs/grafeas/v1/build.rb
Overview
Details of a build occurrence.
Instance Attribute Summary collapse
-
#in_toto_slsa_provenance_v1 ⇒ ::Grafeas::V1::InTotoSlsaProvenanceV1
In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement.
-
#intoto_provenance ⇒ ::Grafeas::V1::InTotoProvenance
Deprecated.
-
#intoto_statement ⇒ ::Grafeas::V1::InTotoStatement
In-toto Statement representation as defined in spec.
-
#provenance ⇒ ::Grafeas::V1::BuildProvenance
The actual provenance for the build.
-
#provenance_bytes ⇒ ::String
Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note.
Instance Attribute Details
#in_toto_slsa_provenance_v1 ⇒ ::Grafeas::V1::InTotoSlsaProvenanceV1
Returns In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.
65 66 67 68 |
# File 'proto_docs/grafeas/v1/build.rb', line 65 class BuildOccurrence include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#intoto_provenance ⇒ ::Grafeas::V1::InTotoProvenance
Returns Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
65 66 67 68 |
# File 'proto_docs/grafeas/v1/build.rb', line 65 class BuildOccurrence include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#intoto_statement ⇒ ::Grafeas::V1::InTotoStatement
Returns In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.
65 66 67 68 |
# File 'proto_docs/grafeas/v1/build.rb', line 65 class BuildOccurrence include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#provenance ⇒ ::Grafeas::V1::BuildProvenance
Returns The actual provenance for the build.
65 66 67 68 |
# File 'proto_docs/grafeas/v1/build.rb', line 65 class BuildOccurrence include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#provenance_bytes ⇒ ::String
Returns Serialized JSON representation of the provenance, used in generating the
build signature in the corresponding build note. After verifying the
signature, provenance_bytes
can be unmarshalled and compared to the
provenance to confirm that it is unchanged. A base64-encoded string
representation of the provenance bytes is used for the signature in order
to interoperate with openssl which expects this format for signature
verification.
The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
65 66 67 68 |
# File 'proto_docs/grafeas/v1/build.rb', line 65 class BuildOccurrence include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |