Help us shape the future of Go! Take the 2026 Go Developer Survey

material

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImageIDToMaterials

func AddImageIDToMaterials(imageID string, mats *[]common.ProvenanceMaterial) error

AddImageIDToMaterials converts an imageId with format <uri>@sha256:<digest> and then adds it to a provenance materials.

func AddSidecarImagesToMaterials

func AddSidecarImagesToMaterials(sidecars []v1beta1.SidecarState, mats *[]common.ProvenanceMaterial) error

AddSidecarImagesToMaterials adds sidecar images to predicate.materials

func AddStepImagesToMaterials

func AddStepImagesToMaterials(steps []v1beta1.StepState, mats *[]common.ProvenanceMaterial) error

AddStepImagesToMaterials adds step images to predicate.materials

func Materials

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

func RemoveDuplicateMaterials

func RemoveDuplicateMaterials(mats []common.ProvenanceMaterial) ([]common.ProvenanceMaterial, error)

RemoveDuplicateMaterials removes duplicate materials from the slice of materials. Original order of materials is retained.

Types

This section is empty.

Jump to

Keyboard shortcuts

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