material

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPipelineParamsAndResults added in v0.17.0

func FromPipelineParamsAndResults(ctx context.Context, pro *objects.PipelineRunObjectV1, slsaconfig *slsaconfig.SlsaConfig) []common.ProvenanceMaterial

FromPipelineParamsAndResults extracts type hinted params and results and adds the url and digest to materials.

func FromSidecarImages added in v0.17.0

func FromSidecarImages(tro *objects.TaskRunObjectV1) ([]common.ProvenanceMaterial, error)

FromSidecarImages gets predicate.materials from sidecar images

func FromStepActionsResults added in v0.21.0

func FromStepActionsResults(ctx context.Context, tro *objects.TaskRunObjectV1) (mats []common.ProvenanceMaterial)

FromStepActionsResults extracts type hinted results from StepActions associated with the TaskRun and adds the url and digest to materials.

func FromStepImages added in v0.17.0

func FromStepImages(tro *objects.TaskRunObjectV1) ([]common.ProvenanceMaterial, error)

FromStepImages gets predicate.materials from step images

func FromTaskParamsAndResults added in v0.17.0

func FromTaskParamsAndResults(ctx context.Context, tro *objects.TaskRunObjectV1) []common.ProvenanceMaterial

FromTaskParamsAndResults scans over the taskrun, taskspec params and taskrun results and looks for unstructured type hinted names matching CHAINS-GIT_COMMIT and CHAINS-GIT_URL to extract the commit and url value for input artifact materials.

func FromTaskResources added in v0.17.0

func FromTaskResources(ctx context.Context, tr *v1beta1.TaskRun) []common.ProvenanceMaterial

FromTaskResourcesToMaterials gets materials from task resources.

func PipelineMaterials added in v0.17.0

func PipelineMaterials(ctx context.Context, pro *objects.PipelineRunObjectV1, slsaconfig *slsaconfig.SlsaConfig) ([]common.ProvenanceMaterial, error)

func TaskMaterials added in v0.17.0

TaskMaterials constructs `predicate.materials` section by collecting all the artifacts that influence a taskrun such as source code repo and step&sidecar base images.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL