astra

package
v0.0.0-...-712d998 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AstraReleasesMapping = map[string]string{
		"precise": "2.12",
		"quantal": "2.12",
		"raring":  "2.12",
		"saucy":   "2.12",
		"trusty":  "2.12",
		"utopic":  "2.12",
		"vivid":   "2.12",
		"wily":    "2.12",
		"xenial":  "2.12",
		"yakkety": "2.12",
		"zesty":   "2.12",
		"artful":  "2.12",
		"bionic":  "2.12",
		"cosmic":  "2.12",
		"disco":   "2.12",
		"eoan":    "2.12",
		"focal":   "2.12",
		"groovy":  "2.12",
		"hirsute": "2.12",
		"impish":  "2.12",
		"jammy":   "2.12",
		"kinetic": "2.12",
		"lunar":   "2.12",
	}
)

Functions

func SeverityFromPriority

func SeverityFromPriority(priority string) types.Severity

SeverityFromPriority converts Astra priority into Trivy severity

Types

type AstraCVE

type AstraCVE struct {
	Description string `json:"description"`
	Candidate   string
	Priority    string
	Patches     map[PackageName]Patch
	References  []string
	PublicDate  string // for extensibility, not used in trivy-db
}

type Option

type Option func(src *VulnSrc)

func WithCustomPut

func WithCustomPut(put db.CustomPut) Option

type PackageName

type PackageName string

type Patch

type Patch map[Release]Status

type Release

type Release string

type Status

type Status struct {
	Status string
	Note   string
}

type VulnSrc

type VulnSrc struct {
	// contains filtered or unexported fields
}

func NewVulnSrc

func NewVulnSrc(opts ...Option) VulnSrc

func (VulnSrc) Get

func (vs VulnSrc) Get(release string, pkgName string) ([]types.Advisory, error)

func (VulnSrc) Name

func (vs VulnSrc) Name() types.SourceID

func (VulnSrc) Update

func (vs VulnSrc) Update(dir string) error

Jump to

Keyboard shortcuts

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