Grafeas V1 Client - Class SlsaProvenance (0.7.1)

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

Generated from protobuf message grafeas.v1.SlsaProvenance

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ builder Grafeas\V1\SlsaProvenance\SlsaBuilder

required

↳ recipe Grafeas\V1\SlsaProvenance\SlsaRecipe

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

↳ metadata Grafeas\V1\SlsaProvenance\SlsaMetadata
↳ materials array<Grafeas\V1\SlsaProvenance\Material>

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

getBuilder

required

Returns
TypeDescription
Grafeas\V1\SlsaProvenance\SlsaBuilder|null

hasBuilder

clearBuilder

setBuilder

required

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

getRecipe

Identifies the configuration used for the build.

When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

Returns
TypeDescription
Grafeas\V1\SlsaProvenance\SlsaRecipe|null

hasRecipe

clearRecipe

setRecipe

Identifies the configuration used for the build.

When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

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

getMetadata

Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Returns
TypeDescription
Grafeas\V1\SlsaProvenance\SlsaMetadata|null

hasMetadata

clearMetadata

setMetadata

Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

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

getMaterials

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMaterials

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

Parameter
NameDescription
var array<Grafeas\V1\SlsaProvenance\Material>
Returns
TypeDescription
$this