Documentation ¶
Index ¶
- Constants
- func ExtractOCIImagesFromResults(obj objects.TektonObject, logger *zap.SugaredLogger) []interface{}
- func RetrieveMaterialsFromStructuredResults(obj objects.TektonObject, categoryMarker string, logger *zap.SugaredLogger) []slsa.ProvenanceMaterial
- type OCIArtifact
- func (oa *OCIArtifact) Enabled(cfg config.Config) bool
- func (oa *OCIArtifact) ExtractObjects(obj objects.TektonObject) []interface{}
- func (oa *OCIArtifact) FullKey(obj interface{}) string
- func (oa *OCIArtifact) PayloadFormat(cfg config.Config) config.PayloadType
- func (oa *OCIArtifact) ShortKey(obj interface{}) string
- func (oa *OCIArtifact) Signer(cfg config.Config) string
- func (oa *OCIArtifact) StorageBackend(cfg config.Config) sets.String
- func (oa *OCIArtifact) Type() string
- type PipelineRunArtifact
- func (pa *PipelineRunArtifact) Enabled(cfg config.Config) bool
- func (pa *PipelineRunArtifact) ExtractObjects(obj objects.TektonObject) []interface{}
- func (pa *PipelineRunArtifact) FullKey(obj interface{}) string
- func (pa *PipelineRunArtifact) PayloadFormat(cfg config.Config) config.PayloadType
- func (pa *PipelineRunArtifact) ShortKey(obj interface{}) string
- func (pa *PipelineRunArtifact) Signer(cfg config.Config) string
- func (pa *PipelineRunArtifact) StorageBackend(cfg config.Config) sets.String
- func (pa *PipelineRunArtifact) Type() string
- type Signable
- type StructuredSignable
- type TaskRunArtifact
- func (ta *TaskRunArtifact) Enabled(cfg config.Config) bool
- func (ta *TaskRunArtifact) ExtractObjects(obj objects.TektonObject) []interface{}
- func (ta *TaskRunArtifact) FullKey(obj interface{}) string
- func (ta *TaskRunArtifact) PayloadFormat(cfg config.Config) config.PayloadType
- func (ta *TaskRunArtifact) ShortKey(obj interface{}) string
- func (ta *TaskRunArtifact) Signer(cfg config.Config) string
- func (ta *TaskRunArtifact) StorageBackend(cfg config.Config) sets.String
- func (ta *TaskRunArtifact) Type() string
Constants ¶
const ( ArtifactsInputsResultName = "ARTIFACT_INPUTS" ArtifactsOutputsResultName = "ARTIFACT_OUTPUTS" )
Variables ¶
This section is empty.
Functions ¶
func ExtractOCIImagesFromResults ¶ added in v0.3.0
func ExtractOCIImagesFromResults(obj objects.TektonObject, logger *zap.SugaredLogger) []interface{}
func RetrieveMaterialsFromStructuredResults ¶ added in v0.13.0
func RetrieveMaterialsFromStructuredResults(obj objects.TektonObject, categoryMarker string, logger *zap.SugaredLogger) []slsa.ProvenanceMaterial
RetrieveMaterialsFromStructuredResults retrieves structured results from Tekton Object, and convert them into materials.
Types ¶
type OCIArtifact ¶
type OCIArtifact struct {
Logger *zap.SugaredLogger
}
func (*OCIArtifact) Enabled ¶ added in v0.7.0
func (oa *OCIArtifact) Enabled(cfg config.Config) bool
func (*OCIArtifact) ExtractObjects ¶
func (oa *OCIArtifact) ExtractObjects(obj objects.TektonObject) []interface{}
func (*OCIArtifact) FullKey ¶ added in v0.13.0
func (oa *OCIArtifact) FullKey(obj interface{}) string
func (*OCIArtifact) PayloadFormat ¶
func (oa *OCIArtifact) PayloadFormat(cfg config.Config) config.PayloadType
func (*OCIArtifact) ShortKey ¶ added in v0.13.0
func (oa *OCIArtifact) ShortKey(obj interface{}) string
func (*OCIArtifact) StorageBackend ¶
func (oa *OCIArtifact) StorageBackend(cfg config.Config) sets.String
func (*OCIArtifact) Type ¶
func (oa *OCIArtifact) Type() string
type PipelineRunArtifact ¶ added in v0.13.0
type PipelineRunArtifact struct {
Logger *zap.SugaredLogger
}
func (*PipelineRunArtifact) Enabled ¶ added in v0.13.0
func (pa *PipelineRunArtifact) Enabled(cfg config.Config) bool
func (*PipelineRunArtifact) ExtractObjects ¶ added in v0.13.0
func (pa *PipelineRunArtifact) ExtractObjects(obj objects.TektonObject) []interface{}
func (*PipelineRunArtifact) FullKey ¶ added in v0.13.0
func (pa *PipelineRunArtifact) FullKey(obj interface{}) string
func (*PipelineRunArtifact) PayloadFormat ¶ added in v0.13.0
func (pa *PipelineRunArtifact) PayloadFormat(cfg config.Config) config.PayloadType
func (*PipelineRunArtifact) ShortKey ¶ added in v0.13.0
func (pa *PipelineRunArtifact) ShortKey(obj interface{}) string
func (*PipelineRunArtifact) Signer ¶ added in v0.13.0
func (pa *PipelineRunArtifact) Signer(cfg config.Config) string
func (*PipelineRunArtifact) StorageBackend ¶ added in v0.13.0
func (pa *PipelineRunArtifact) StorageBackend(cfg config.Config) sets.String
func (*PipelineRunArtifact) Type ¶ added in v0.13.0
func (pa *PipelineRunArtifact) Type() string
type Signable ¶
type Signable interface { ExtractObjects(obj objects.TektonObject) []interface{} StorageBackend(cfg config.Config) sets.String Signer(cfg config.Config) string PayloadFormat(cfg config.Config) config.PayloadType // FullKey returns the full identifier for a signable artifact. // - For OCI artifact, it is the full representation in the format of `<NAME>@sha256:<DIGEST>`. // - For TaskRun/PipelineRun artifact, it is `<GROUP>-<VERSION>-<KIND>-<UID>` FullKey(interface{}) string // ShortKey returns the short version of an artifact identifier. // - For OCI artifact, it is first 12 chars of the image digest. // - For TaskRun/PipelineRun artifact, it is `<KIND>-<UID>`. ShortKey(interface{}) string Type() string Enabled(cfg config.Config) bool }
type StructuredSignable ¶ added in v0.11.0
StructuredSignable contains info for signable targets to become either subjects or materials in intoto Statements. URI is the resource uri for the target needed iff the target is a material. Digest is the target's SHA digest.
func ExtractSignableTargetFromResults ¶ added in v0.11.0
func ExtractSignableTargetFromResults(obj objects.TektonObject, logger *zap.SugaredLogger) []*StructuredSignable
ExtractSignableTargetFromResults extracts signable targets that aim to generate intoto provenance as materials within TaskRun results and store them as StructuredSignable.
func ExtractStructuredTargetFromResults ¶ added in v0.13.0
func ExtractStructuredTargetFromResults(obj objects.TektonObject, categoryMarker string, logger *zap.SugaredLogger) []*StructuredSignable
ExtractStructuredTargetFromResults extracts structured signable targets aim to generate intoto provenance as materials within TaskRun results and store them as StructuredSignable. categoryMarker categorizes signable targets into inputs and outputs.
func (*StructuredSignable) FullRef ¶ added in v0.12.0
func (s *StructuredSignable) FullRef() string
FullRef returns the full reference of the signable artifact in the format of URI@DIGEST
type TaskRunArtifact ¶
type TaskRunArtifact struct {
Logger *zap.SugaredLogger
}
func (*TaskRunArtifact) Enabled ¶ added in v0.7.0
func (ta *TaskRunArtifact) Enabled(cfg config.Config) bool
func (*TaskRunArtifact) ExtractObjects ¶
func (ta *TaskRunArtifact) ExtractObjects(obj objects.TektonObject) []interface{}
func (*TaskRunArtifact) FullKey ¶ added in v0.13.0
func (ta *TaskRunArtifact) FullKey(obj interface{}) string
func (*TaskRunArtifact) PayloadFormat ¶
func (ta *TaskRunArtifact) PayloadFormat(cfg config.Config) config.PayloadType
func (*TaskRunArtifact) ShortKey ¶ added in v0.13.0
func (ta *TaskRunArtifact) ShortKey(obj interface{}) string
func (*TaskRunArtifact) StorageBackend ¶
func (ta *TaskRunArtifact) StorageBackend(cfg config.Config) sets.String
func (*TaskRunArtifact) Type ¶
func (ta *TaskRunArtifact) Type() string