provenance

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDerivation

func GetDerivation(dir string) (*derivation.Derivation, error)

GetDerivation gets the derivation from the store

Types

type Statement

type Statement struct {
	intoto.StatementHeader
	Predicate slsav1.Provenance
}

Statement is a struct to hold the provenance statement

func NewStatement

func NewStatement(appDetails *nixcmd.App) *Statement

NewStatement creates a new provenance statement

func (*Statement) FromDerivationClosure

func (s *Statement) FromDerivationClosure(drvPath string, drv *derivation.Derivation, graph *gographviz.Graph) error

FromDerivationClosure gets the provenance from the graph

func (*Statement) ToJSON

func (s *Statement) ToJSON() ([]byte, error)

ToJSON converts the provenance statement to JSON

Jump to

Keyboard shortcuts

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