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 | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
string
Always |
↳ subject |
array<Grafeas\V1\Subject>
|
↳ predicate_type |
string
|
↳ 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 | |
---|---|
Type | Description |
string |
setType
Always https://in-toto.io/Statement/v0.1
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSubject
Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSubject
Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;
Parameter | |
---|---|
Name | Description |
var |
array<Grafeas\V1\Subject>
|
Returns | |
---|---|
Type | Description |
$this |
getPredicateType
https://slsa.dev/provenance/v0.1
for SlsaProvenance.
Returns | |
---|---|
Type | Description |
string |
setPredicateType
https://slsa.dev/provenance/v0.1
for SlsaProvenance.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getProvenance
Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4;
Returns | |
---|---|
Type | Description |
Grafeas\V1\InTotoProvenance|null |
hasProvenance
setProvenance
Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4;
Parameter | |
---|---|
Name | Description |
var |
Grafeas\V1\InTotoProvenance
|
Returns | |
---|---|
Type | Description |
$this |
getSlsaProvenance
Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5;
Returns | |
---|---|
Type | Description |
Grafeas\V1\SlsaProvenance|null |
hasSlsaProvenance
setSlsaProvenance
Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5;
Parameter | |
---|---|
Name | Description |
var |
Grafeas\V1\SlsaProvenance
|
Returns | |
---|---|
Type | Description |
$this |
getSlsaProvenanceZeroTwo
Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;
Returns | |
---|---|
Type | Description |
Grafeas\V1\SlsaProvenanceZeroTwo|null |
hasSlsaProvenanceZeroTwo
setSlsaProvenanceZeroTwo
Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;
Parameter | |
---|---|
Name | Description |
var |
Grafeas\V1\SlsaProvenanceZeroTwo
|
Returns | |
---|---|
Type | Description |
$this |
getPredicate
Returns | |
---|---|
Type | Description |
string |