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

provenance

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigestSet

type DigestSet map[string]string

DigestSet contains a set of digests. It is represented as a map from algorithm name to lowercase hex-encoded value.

type Invocation

type Invocation struct {
	Parameters interface{} `json:"parameters"`
	// This would be nil for an "inline task", a URI for the Task definition itself
	// if it was created in-cluster, or an OCI uri if it came from OCI
	// Something else if it came from a pipeline
	RecipeURI string `json:"recipe_uri"`
	EventID   string `json:"event_id"`
	ID        string `json:"builder.id"`
}

Invocation describes how the Taskrun was created

type ProvenanceMaterial

type ProvenanceMaterial struct {
	URI    string    `json:"uri"`
	Digest DigestSet `json:"digest,omitempty"`
}

ProvenanceMaterial defines the materials used to build an artifact.

type ProvenanceMetadata

type ProvenanceMetadata struct {
	// Use pointer to make sure that the abscense of a time is not
	// encoded as the Epoch time.
	BuildStartedOn  *time.Time `json:"buildStartedOn,omitempty"`
	BuildFinishedOn *time.Time `json:"buildFinishedOn,omitempty"`
	// removed: Completeness
	Reproducible bool `json:"reproducible,omitempty"`
}

ProvenanceMetadata contains metadata for the built artifact.

type ProvenancePredicate

type ProvenancePredicate struct {
	// removed: ProvenanceBuilder
	Invocation Invocation           `json:"invocation"`
	Recipe     ProvenanceRecipe     `json:"recipe"`
	Metadata   ProvenanceMetadata   `json:"metadata"`
	Materials  []ProvenanceMaterial `json:"materials,omitempty"`
}

ProvenancePredicate is the provenance predicate definition.

type ProvenanceRecipe

type ProvenanceRecipe struct {
	Steps []RecipeStep `json:"steps,omitempty"`
}

ProvenanceRecipe describes the actions performed by the builder.

type RecipeStep

type RecipeStep struct {
	EntryPoint  string            `json:"entryPoint"`
	Arguments   interface{}       `json:"arguments,omitempty"`
	Environment interface{}       `json:"environment,omitempty"`
	Annotations map[string]string `json:"annotations"`
}

Jump to

Keyboard shortcuts

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