Grafeas V1 Client - Class SlsaMetadata (0.6.0)

Reference documentation and code samples for the Grafeas V1 Client class SlsaMetadata.

Other properties of the build.

Generated from protobuf message grafeas.v1.SlsaProvenance.SlsaMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ build_invocation_id string

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

↳ build_started_on Google\Protobuf\Timestamp

The timestamp of when the build started.

↳ build_finished_on Google\Protobuf\Timestamp

The timestamp of when the build completed.

↳ completeness Grafeas\V1\SlsaProvenance\SlsaCompleteness

Indicates that the builder claims certain fields in this message to be complete.

↳ reproducible bool

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.

getBuildInvocationId

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

Returns
TypeDescription
string

setBuildInvocationId

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBuildStartedOn

The timestamp of when the build started.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasBuildStartedOn

clearBuildStartedOn

setBuildStartedOn

The timestamp of when the build started.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getBuildFinishedOn

The timestamp of when the build completed.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasBuildFinishedOn

clearBuildFinishedOn

setBuildFinishedOn

The timestamp of when the build completed.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCompleteness

Indicates that the builder claims certain fields in this message to be complete.

Returns
TypeDescription
Grafeas\V1\SlsaProvenance\SlsaCompleteness|null

hasCompleteness

clearCompleteness

setCompleteness

Indicates that the builder claims certain fields in this message to be complete.

Parameter
NameDescription
var Grafeas\V1\SlsaProvenance\SlsaCompleteness
Returns
TypeDescription
$this

getReproducible

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.

Returns
TypeDescription
bool

setReproducible

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this