internal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	LocalVersion  *semver.Version
	LatestVersion *semver.Version
	Error         error
}

CheckResult is exported.

type LicenseResult added in v0.3.0

type LicenseResult struct {
	LocalVersion *semver.Version
	Type         string
	Error        error
}

LicenseResult is result for license check.

type SearchResult

type SearchResult struct {
	Name        string
	Path        string
	ImportCount int
	Stars       int
	Score       float64
	Synopsis    string
}

SearchResult is exported.

type VulnerabilityResult added in v0.2.0

type VulnerabilityResult struct {
	Issues []struct {
		Code       string `json:"code"`
		File       string `json:"file"`
		Line       string `json:"line"`
		Column     string `json:"column"`
		Details    string `json:"details"`
		RuleID     string `json:"rule_id"`
		Severity   string `json:"severity"`
		Confidence string `json:"confidence"`
		Cwe        struct {
			ID  string `json:"id"`
			URL string `json:"url"`
		} `json:"cwe"`
	} `json:"issues"`
	Stats struct {
		Files int `json:"files"`
		Found int `json:"found"`
		Lines int `json:"lines"`
	} `json:"stats"`
}

VulnerabilityResult is exported

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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