gomod

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

go-osv-scanner - CLI client to discover vulnerable modules.

@author: siroa

@repository: https://github.com/edoardottt/depsdev

@license: https://github.com/siroa/go-osv-scanner/blob/main/LICENSE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoMod

type GoMod struct {
	Name    string
	Modules []Module
}

func NewGoMod

func NewGoMod(name string) *GoMod

func ParseGoMod

func ParseGoMod(file []byte) *GoMod

type Module

type Module struct {
	Name        string
	Version     string
	AdvisoryIDs []string
}

func NewModule

func NewModule(name, ver string) *Module

func (Module) PrintModule

func (m Module) PrintModule()

func (Module) SetAdvisory

func (m Module) SetAdvisory(depsdev api.DepsdevRepository)

func (*Module) SetAdvisoryKeys

func (m *Module) SetAdvisoryKeys(depsdev api.DepsdevRepository)

Jump to

Keyboard shortcuts

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