LinkArgs

data class LinkArgs(val byproducts: Output<ByProductsArgs>? = null, val command: Output<List<String>>? = null, val environment: Output<EnvironmentArgs>? = null, val materials: Output<List<GrafeasV1beta1IntotoArtifactArgs>>? = null, val products: Output<List<GrafeasV1beta1IntotoArtifactArgs>>? = null) : ConvertibleToJava<LinkArgs>

This corresponds to an in-toto link.

Constructors

Link copied to clipboard
fun LinkArgs(byproducts: Output<ByProductsArgs>? = null, command: Output<List<String>>? = null, environment: Output<EnvironmentArgs>? = null, materials: Output<List<GrafeasV1beta1IntotoArtifactArgs>>? = null, products: Output<List<GrafeasV1beta1IntotoArtifactArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): LinkArgs

Properties

Link copied to clipboard
val byproducts: Output<ByProductsArgs>? = null

ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.

Link copied to clipboard
val command: Output<List<String>>? = null

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"

Link copied to clipboard
val environment: Output<EnvironmentArgs>? = null

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": "", "": "..." } }

Link copied to clipboard

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...", : } }

Link copied to clipboard

Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.