provenance

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterArgs

func FilterArgs(m map[string]string) map[string]string

Types

type Capture

type Capture struct {
	Frontend            string
	Args                map[string]string
	Sources             provenancetypes.Sources
	Secrets             []provenancetypes.Secret
	SSH                 []provenancetypes.SSH
	NetworkAccess       bool
	IncompleteMaterials bool
	Samples             map[digest.Digest]*resourcestypes.Samples
}

func (*Capture) AddGit

func (c *Capture) AddGit(g provenancetypes.GitSource)

func (*Capture) AddHTTP

func (c *Capture) AddHTTP(h provenancetypes.HTTPSource)

func (*Capture) AddImage

func (c *Capture) AddImage(i provenancetypes.ImageSource)

func (*Capture) AddLocal

func (c *Capture) AddLocal(l provenancetypes.LocalSource)

func (*Capture) AddSSH

func (c *Capture) AddSSH(s provenancetypes.SSH)

func (*Capture) AddSamples added in v0.12.0

func (c *Capture) AddSamples(dgst digest.Digest, samples *resourcestypes.Samples)

func (*Capture) AddSecret

func (c *Capture) AddSecret(s provenancetypes.Secret)

func (*Capture) Merge

func (c *Capture) Merge(c2 *Capture) error

func (*Capture) OptimizeImageSources

func (c *Capture) OptimizeImageSources() error

OptimizeImageSources filters out image sources by digest reference if same digest is already present by a tag reference.

func (*Capture) Sort

func (c *Capture) Sort()

type Result

type Result = result.Result[*Capture]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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