Documentation ¶
Index ¶
- func FromPipelineParamsAndResults(ctx context.Context, pro *objects.PipelineRunObjectV1Beta1, ...) []common.ProvenanceMaterial
- func FromSidecarImages(tro *objects.TaskRunObjectV1Beta1) ([]common.ProvenanceMaterial, error)
- func FromStepImages(tro *objects.TaskRunObjectV1Beta1) ([]common.ProvenanceMaterial, error)
- func FromTaskParamsAndResults(ctx context.Context, tro *objects.TaskRunObjectV1Beta1) []common.ProvenanceMaterial
- func FromTaskResources(ctx context.Context, tro *objects.TaskRunObjectV1Beta1) []common.ProvenanceMaterial
- func PipelineMaterials(ctx context.Context, pro *objects.PipelineRunObjectV1Beta1, ...) ([]common.ProvenanceMaterial, error)
- func TaskMaterials(ctx context.Context, tro *objects.TaskRunObjectV1Beta1) ([]common.ProvenanceMaterial, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromPipelineParamsAndResults ¶
func FromPipelineParamsAndResults(ctx context.Context, pro *objects.PipelineRunObjectV1Beta1, slsaconfig *slsaconfig.SlsaConfig) []common.ProvenanceMaterial
FromPipelineParamsAndResults extracts type hinted params and results and adds the url and digest to materials.
func FromSidecarImages ¶
func FromSidecarImages(tro *objects.TaskRunObjectV1Beta1) ([]common.ProvenanceMaterial, error)
FromSidecarImages gets predicate.materials from sidecar images
func FromStepImages ¶
func FromStepImages(tro *objects.TaskRunObjectV1Beta1) ([]common.ProvenanceMaterial, error)
FromStepImages gets predicate.materials from step images
func FromTaskParamsAndResults ¶
func FromTaskParamsAndResults(ctx context.Context, tro *objects.TaskRunObjectV1Beta1) []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 ¶
func FromTaskResources(ctx context.Context, tro *objects.TaskRunObjectV1Beta1) []common.ProvenanceMaterial
FromTaskResourcesToMaterials gets materials from task resources.
func PipelineMaterials ¶
func PipelineMaterials(ctx context.Context, pro *objects.PipelineRunObjectV1Beta1, slsaconfig *slsaconfig.SlsaConfig) ([]common.ProvenanceMaterial, error)
func TaskMaterials ¶
func TaskMaterials(ctx context.Context, tro *objects.TaskRunObjectV1Beta1) ([]common.ProvenanceMaterial, error)
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.