search

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPIndex added in v0.8.2

func IPIndex(indexName, query string) ([]IPEntry, *Stats, error)

func IndexPurl added in v0.7.3

func IndexPurl(indexName, query string) ([]PurlEntry, *Stats, error)

IndexPurl - for PURL searches

func QueryIPIntel added in v0.8.0

func QueryIPIntel(country, asn, cidr, countryCode, hostname, id string) string

func QueryPURL added in v0.8.0

func QueryPURL(instance packageurl.PackageURL) string

Types

type IPEntry added in v0.8.2

type IPEntry struct {
	IP          string   `json:"ip"`
	Port        int      `json:"port"`
	SSL         bool     `json:"ssl"`
	LastSeen    string   `json:"lastSeen"`
	ASN         string   `json:"asn"`
	Country     string   `json:"country"`
	CountryCode string   `json:"country_code"`
	City        string   `json:"city"`
	CVE         []string `json:"cve"`
	Matches     []string `json:"matches"`
	Hostnames   []string `json:"hostnames"`
	Type        struct {
		ID      string `json:"id"`
		Kind    string `json:"kind"`
		Finding string `json:"finding"`
	} `json:"type"`
	FeedIDs []string `json:"feed_ids"`
}

type PurlEntry added in v0.7.3

type PurlEntry struct {
	Name            string                  `json:"name"`
	Version         string                  `json:"version"`
	Purl            []string                `json:"purl"`
	Licenses        []string                `json:"licenses"`
	CVEs            []string                `json:"cves"`
	Vulnerabilities []sdk.PurlVulnerability `json:"vulnerabilities"`
	Artifacts       struct {
		Source []struct {
			Type      string `json:"type"`
			URL       string `json:"url"`
			Reference string `json:"reference,omitempty"`
		} `json:"source"`
		Binary []struct {
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"binary"`
	} `json:"artifacts"`
	PublishedDate string `json:"published_date"`
}

type Stats

type Stats struct {
	TotalFiles   int64
	TotalLines   int64
	MatchedLines int64
	Duration     time.Duration
	Query        string
}

func IndexCPE added in v0.8.2

func IndexCPE(indexName string, cpe cpeutils.CPE, query string) ([]cpeutils.CPEVulnerabilities, *Stats, error)

Jump to

Keyboard shortcuts

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