ghsa

package
v0.0.0-...-0e2e07d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	VulnerabilityID    string   `json:",omitempty"`
	VulnerableVersions []string `json:",omitempty"`
	PatchedVersions    []string `json:",omitempty"`
}

type Ecosystem

type Ecosystem int
const (
	Composer Ecosystem = iota + 1
	Maven
	Npm
	Nuget
	Pip
	Rubygems
)

func (Ecosystem) String

func (e Ecosystem) String() string

type FirstPatchedVersion

type FirstPatchedVersion struct {
	Identifier string
}

type GhsaAdvisory

type GhsaAdvisory struct {
	DatabaseId  int
	Id          string
	GhsaId      string
	References  []Reference
	Identifiers []Identifier
	Description string
	Origin      string
	PublishedAt string
	Severity    string
	Summary     string
	UpdatedAt   string
	WithdrawnAt string
}

type GithubSecurityAdvisory

type GithubSecurityAdvisory struct {
	Severity  string
	UpdatedAt string
	Package   Package
	Advisory  GhsaAdvisory
	Versions  []Version
}

type Identifier

type Identifier struct {
	Type  string
	Value string
}

type Package

type Package struct {
	Ecosystem string
	Name      string
}

type Reference

type Reference struct {
	Url string
}

type Version

type Version struct {
	FirstPatchedVersion    FirstPatchedVersion
	VulnerableVersionRange string
}

type VulnSrc

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

func NewVulnSrc

func NewVulnSrc(ecosystem Ecosystem) VulnSrc

func (VulnSrc) Get

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

func (VulnSrc) Name

func (vs VulnSrc) Name() string

func (VulnSrc) ToLowerCasePackage

func (vs VulnSrc) ToLowerCasePackage(pkgName string) string

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