Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Parsers = ParserList{ FormatDSSE: &dsse.Parser{}, FormatBundleV3: &bundle.Parser{}, }
Functions ¶
This section is empty.
Types ¶
type JsonlParser ¶
type JsonlParser struct{}
JsonlParser is a virtual parser that splits the jsonl files into the contained JSON structs and calls the configured envelope parsers for each instance.
func NewJSONL ¶
func NewJSONL() *JsonlParser
func (*JsonlParser) FileExtensions ¶
func (jlp *JsonlParser) FileExtensions() []string
FileExtensions returns the file extennsions this parser will look at.
func (*JsonlParser) Parse ¶
func (jlp *JsonlParser) Parse(data []byte) ([]attestation.Envelope, error)
func (*JsonlParser) ParseFile ¶
func (jlp *JsonlParser) ParseFile(path string) ([]attestation.Envelope, error)
ParseFile takes a path and returns the attestations in the file
func (*JsonlParser) ParseStream ¶
func (jlp *JsonlParser) ParseStream(jsonlStream io.Reader) ([]attestation.Envelope, error)
ParseFile parses a file and returns all envelopes in it.
type ParserList ¶
type ParserList map[Format]attestation.EnvelopeParser
ParserList wraps a map listing the loaded parsers to expose convenience methods
func (*ParserList) Parse ¶
func (list *ParserList) Parse(r io.Reader) ([]attestation.Envelope, error)
Parse takes a reader and parses
func (*ParserList) ParseFiles ¶ added in v0.2.2
func (list *ParserList) ParseFiles(paths []string) ([]attestation.Envelope, error)
ParseFiles takes a list of paths and parses envelopes directly from them
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bare implenta a parser to make non-signed attestations compatible with the ampel policy engine.
|
Package bare implenta a parser to make non-signed attestations compatible with the ampel policy engine. |
|
Packager bundle provides functionality to work with the sigstore budle format
|
Packager bundle provides functionality to work with the sigstore budle format |
Click to show internal directories.
Click to hide internal directories.