syft

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "syft"
	Type    = "https://witness.dev/attestations/syft/v0.1"
	RunType = attestation.PostRunType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestor

type Attestor struct {
	SBOM sbom.SBOM `json:"-"`
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Attestor

func (*Attestor) Attest

func (a *Attestor) Attest(ctx *attestation.AttestationContext) error

func (*Attestor) MarshalJSON

func (a *Attestor) MarshalJSON() ([]byte, error)

func (*Attestor) Name

func (*Attestor) Name() string

func (*Attestor) RunType

func (*Attestor) RunType() attestation.RunType

func (*Attestor) ToCycloneDX

func (a *Attestor) ToCycloneDX() ([]byte, error)

func (*Attestor) ToSPDX

func (a *Attestor) ToSPDX() ([]byte, error)

func (*Attestor) Type

func (*Attestor) Type() string

func (*Attestor) UnmarshalJSON

func (a *Attestor) UnmarshalJSON(data []byte) error

type Option

type Option func(*Attestor)

func WithImageSource

func WithImageSource(img container.Image, cacheDir string, additionalTags ...string) Option

func WithSource

func WithSource(source string) Option

Jump to

Keyboard shortcuts

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