checker

package
v0.0.0-...-24bde57 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name         string
	IsVulnerable bool
	Children     Nodes
}

type Nodes

type Nodes []*Node

type Package

type Package struct {
	Name             string
	IsRoot           bool
	InstalledVersion string
	Link             string
	Dependencies     []string
	Vulnerabilities  []sensiolabs.Advisory
}

type Packages

type Packages []Package

type Project

type Project struct {
	Verbosity bool
	JsonFile  string
	LockFile  string
}

func (*Project) Check

func (project *Project) Check(advs *sensiolabs.Advisories) (*Results, error)

type Results

type Results struct {
	AdvisorySource    string
	AdvisoryLastBuild time.Time
	AdvisorySize      int
	Packages          Packages
	DepsTree          Tree
}

func (*Results) PrintReport

func (results *Results) PrintReport(w io.Writer, verbosity bool)

type Tree

type Tree struct {
	Nodes Nodes
}

func GetDependenciesTree

func GetDependenciesTree(packs Packages) Tree

func (Tree) PrintTree

func (tree Tree) PrintTree(w io.Writer)

Jump to

Keyboard shortcuts

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