Grafeas V1 Client - Class InTotoStatement (0.7.1)

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

Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload.

Envelope.payloadType is always "application/vnd.in-toto+json".

Generated from protobuf message grafeas.v1.InTotoStatement

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type string

Always https://in-toto.io/Statement/v0.1.

↳ subject array<Grafeas\V1\Subject>
↳ predicate_type string

https://slsa.dev/provenance/v0.1 for SlsaProvenance.

↳ provenance Grafeas\V1\InTotoProvenance
↳ slsa_provenance Grafeas\V1\SlsaProvenance
↳ slsa_provenance_zero_two Grafeas\V1\SlsaProvenanceZeroTwo

getType

Always https://in-toto.io/Statement/v0.1.

Returns
TypeDescription
string

setType

Always https://in-toto.io/Statement/v0.1.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubject

Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubject

Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;

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

getPredicateType

https://slsa.dev/provenance/v0.1 for SlsaProvenance.

Returns
TypeDescription
string

setPredicateType

https://slsa.dev/provenance/v0.1 for SlsaProvenance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProvenance

Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
Grafeas\V1\InTotoProvenance|null

hasProvenance

setProvenance

Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4;

Parameter
NameDescription
var Grafeas\V1\InTotoProvenance
Returns
TypeDescription
$this

getSlsaProvenance

Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
Grafeas\V1\SlsaProvenance|null

hasSlsaProvenance

setSlsaProvenance

Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5;

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

getSlsaProvenanceZeroTwo

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
TypeDescription
Grafeas\V1\SlsaProvenanceZeroTwo|null

hasSlsaProvenanceZeroTwo

setSlsaProvenanceZeroTwo

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Parameter
NameDescription
var Grafeas\V1\SlsaProvenanceZeroTwo
Returns
TypeDescription
$this

getPredicate

Returns
TypeDescription
string