Link class

This corresponds to an in-toto link.

Constructors

Link({Input<ByProducts>? byproducts, Input<List<String>>? command, Input<Environment>? environment, Input<List<GrafeasV1beta1IntotoArtifact>>? materials, Input<List<GrafeasV1beta1IntotoArtifact>>? products})
Creates a new Link. byproducts ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. command This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": "git", "clone", "https://github.com/in-toto/demo-project.git" environment This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } materials Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } products Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
const
Link.fromMap(Map<String, dynamic> map)
factory

Properties

byproducts → Input<ByProducts>?
ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
final
command → Input<List<String>>?
This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": "git", "clone", "https://github.com/in-toto/demo-project.git"
final
environment → Input<Environment>?
This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } }
final
hashCode → int
The hash code for this object.
no setterinherited
materials → Input<List<GrafeasV1beta1IntotoArtifact>>?
Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } }
final
products → Input<List<GrafeasV1beta1IntotoArtifact>>?
Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited