iface

package
v2.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provenance

type Provenance interface {
	// BuilderID returns the builder id in the predicate.
	BuilderID() (string, error)

	// BuildType returns the buildType.
	BuildType() (string, error)

	// SourceURI is the full URI (including tag) of the source material.
	SourceURI() (string, error)

	// TriggerURI is the full URI (including tag) of the configuration / trigger.
	TriggerURI() (string, error)

	// Subject is the list of intoto subjects in the provenance.
	Subjects() ([]intoto.Subject, error)

	// GetBranch retrieves the branch name of the source from the provenance.
	GetBranch() (string, error)

	// GetTag retrieves the tag of the source from the provenance.
	GetTag() (string, error)

	// Get workflow trigger path.
	GetBuildTriggerPath() (string, error)

	// Get system pararmeters.
	GetSystemParameters() (map[string]any, error)

	// Get build invocation ID.
	GetBuildInvocationID() (string, error)

	// Get build start time.
	GetBuildStartTime() (*time.Time, error)

	// Get build finish time.
	GetBuildFinishTime() (*time.Time, error)

	// Get number of resolved dependencies.
	GetNumberResolvedDependencies() (int, error)

	// GetWorkflowInputs retrieves the inputs from the provenance. Only succeeds for event
	// relevant event types (workflow_inputs).
	GetWorkflowInputs() (map[string]interface{}, error)
}

Provenance represents provenance for a predicate type and build type.

Jump to

Keyboard shortcuts

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