idstr

package
v0.0.0-...-48d6810 Latest Latest
Warning

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

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

Documentation

Overview

Package idstr provides utilities for working with vulnerability identifier strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvisoryLink(id string) string

func FindCVE

func FindCVE(s string) string

func FindGHSA

func FindGHSA(s string) string

func FindID

func FindID(s string) string

func GoAdvisory

func GoAdvisory(id string) string

func IsAdvisory

func IsAdvisory(u string) bool

func IsAdvisoryFor

func IsAdvisoryFor(u, alias string) bool

func IsAdvisoryForOneOf

func IsAdvisoryForOneOf(u string, aliases []string) (string, bool)

func IsAliasType

func IsAliasType(id string) bool

IsAliasType returns whether the given ID is a recognized alias type (currently, either a GHSA or CVE).

func IsCVE

func IsCVE(s string) bool
func IsCVELink(u string) bool

func IsGHSA

func IsGHSA(s string) bool
func IsGHSAGlobalLink(u string) bool
func IsGHSARepoLink(u string) bool

func IsGoAdvisory

func IsGoAdvisory(u string) bool

func IsGoID

func IsGoID(s string) bool

func IsIdentifier

func IsIdentifier(id string) bool

IsIdentifier returns whether the given ID is a recognized identifier (currently, either a GHSA, CVE, or Go ID).

Types

This section is empty.

Jump to

Keyboard shortcuts

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