bundler

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory added in v0.9.0

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

Advisory implements the bundler VulnSrc

func NewAdvisory added in v0.9.0

func NewAdvisory() *Advisory

NewAdvisory is the factory method to return bundler.Advisory

func (*Advisory) DetectVulnerabilities added in v0.9.0

func (a *Advisory) DetectVulnerabilities(pkgName, pkgVer string) ([]types.DetectedVulnerability, error)

DetectVulnerabilities scans and returns Vulnerability in bundler

type RubyGemsComparer added in v0.13.0

type RubyGemsComparer struct{}

RubyGemsComparer represents a comparer for RubyGems

func (RubyGemsComparer) IsVulnerable added in v0.13.0

func (r RubyGemsComparer) IsVulnerable(ver string, advisory dbTypes.Advisory) bool

IsVulnerable checks if the package version is vulnerable to the advisory.

type VulnSrc

type VulnSrc interface {
	Get(pkgName string) ([]bundlerSrc.Advisory, error)
}

VulnSrc defines the operation on bundler vulnerability

Jump to

Keyboard shortcuts

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