v1

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndex

func NewIndex(fsys rwfs.FS) (*configs.Index[Document], error)

func NewIndexFromPaths

func NewIndexFromPaths(fsys rwfs.FS, paths ...string) (*configs.Index[Document], error)

Types

type Advisories

type Advisories map[string][]Entry

type Document

type Document struct {
	Package Package `yaml:"package"`

	Advisories Advisories `yaml:"advisories,omitempty"`
}

func DecodeDocument

func DecodeDocument(r io.Reader) (*Document, error)

func (Document) Name

func (d Document) Name() string

type Entry

type Entry struct {
	Timestamp       time.Time         `yaml:"timestamp"`
	Status          vex.Status        `yaml:"status"`
	Justification   vex.Justification `yaml:"justification,omitempty"`
	ImpactStatement string            `yaml:"impact,omitempty"`
	ActionStatement string            `yaml:"action,omitempty"`
	FixedVersion    string            `yaml:"fixed-version,omitempty"`
}

type Package

type Package struct {
	Name string `yaml:"name"`
}

Jump to

Keyboard shortcuts

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