genericosv

package
v0.0.0-...-239384d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause, CC-BY-4.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2023 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Package genericosv provides utilities for working with generic OSV structs (not specialized for Go).

Index

Constants

This section is empty.

Variables

View Source
var EcosystemGo = models.EcosystemGo

Functions

This section is empty.

Types

type Entry

type Entry models.Vulnerability

Entry is a a generic OSV entry, not specialized for Go.

func Fetch

func Fetch(id string) (*Entry, error)

Fetch returns the OSV entry from the osv.dev API for the given ID.

func (*Entry) ToReport

func (osv *Entry) ToReport(goID string, pc *proxy.Client) *report.Report

ToReport converts OSV into a Go Report with the given ID.

Jump to

Keyboard shortcuts

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