vulndb

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(ctx context.Context, httpClient *httputil.Client, destination string) error

Types

type Conn

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

func AutoFetchAndOpen

func AutoFetchAndOpen(ctx context.Context, path string, httpClient *httputil.Client, maxAge time.Duration) (*Conn, error)

func Open

func Open(uri string) (*Conn, error)

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) GetGitHubAdvisoriesForRepository

func (c *Conn) GetGitHubAdvisoriesForRepository(ctx context.Context, repository string) ([]GitHubAdvisory, error)

type GitHubAdvisory

type GitHubAdvisory struct {
	ID                string
	Repository        string
	Published         time.Time
	Severity          Severity
	IntroducedVersion string
	FixedVersion      string
}

type Severity

type Severity string
const (
	SeverityCritical    Severity = "critical"
	SeverityHigh        Severity = "high"
	SeverityMedium      Severity = "medium"
	SeverityLow         Severity = "low"
	SeverityUnspecified Severity = "unspecified"
)

Jump to

Keyboard shortcuts

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