protobom

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const PredicateType attestation.PredicateType = "application/protobom"

Variables

Functions

This section is empty.

Types

type Parser

type Parser struct{}

func New

func New() *Parser

func (*Parser) Parse

func (p *Parser) Parse(data []byte) (attestation.Predicate, error)

Parse generates a generic JSON predicate object from any JSON it gets.

func (*Parser) SupportsType

func (p *Parser) SupportsType(testTypes ...attestation.PredicateType) bool

type Predicate

type Predicate struct {
	Data   []byte
	Parsed *sbom.Document
}

func (*Predicate) GetData

func (p *Predicate) GetData() []byte

func (*Predicate) GetParsed

func (p *Predicate) GetParsed() any

func (*Predicate) GetType

func (*Predicate) GetType() attestation.PredicateType

Jump to

Keyboard shortcuts

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