models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 1 Imported by: 0 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

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Vendor    string `json:"vendor,omitempty"`
	Component string `json:"component,omitempty"`
	Version   string `json:"version,omitempty"`
	Source    string `json:"source,omitempty"`
}

Dependencies represents component dependencies

type FileFingerprint

type FileFingerprint struct {
	Path        string
	Hash        string
	Size        int
	Fingerprint string // WFP content
}

FileFingerprint represents the fingerprint of a file

type Health

type Health struct {
	CreationDate string      `json:"creation_date,omitempty"`
	LastUpdate   string      `json:"last_update,omitempty"`
	LastPush     string      `json:"last_push,omitempty"`
	Stars        interface{} `json:"stars,omitempty"`
	Issues       interface{} `json:"issues,omitempty"`
}

Health represents repository health information

type KbVersion

type KbVersion struct {
	Monthly string `json:"monthly,omitempty"`
	Daily   string `json:"daily,omitempty"`
}

KbVersion represents knowledge base versions

type Licenses

type Licenses struct {
	Name         string    `json:"name,omitempty"`
	PatentHints  string    `json:"patent_hints,omitempty"`
	Copyleft     string    `json:"copyleft,omitempty"`
	ChecklistURL string    `json:"checklist_url,omitempty"`
	OsadlUpdated time.Time `json:"osadl_updated,omitempty"`
	Source       string    `json:"source,omitempty"`
	URL          string    `json:"url,omitempty"`
}

Licenses represents license information

type Quality

type Quality struct {
	Score  string `json:"score,omitempty"`
	Source string `json:"source,omitempty"`
}

Quality represents the quality of the detected component

type ResultEntry

type ResultEntry struct {
	ID              string         `json:"id,omitempty"`
	Lines           string         `json:"lines,omitempty"`
	OssLines        string         `json:"oss_lines,omitempty"`
	Matched         string         `json:"matched,omitempty"`
	FileHash        string         `json:"file_hash,omitempty"`
	SourceHash      string         `json:"source_hash,omitempty"`
	FileURL         string         `json:"file_url,omitempty"`
	Quality         []Quality      `json:"quality,omitempty"`
	Cryptography    []interface{}  `json:"cryptography,omitempty"`
	Purl            []string       `json:"purl,omitempty"`
	Vendor          string         `json:"vendor,omitempty"`
	Component       string         `json:"component,omitempty"`
	Version         string         `json:"version,omitempty"`
	Latest          string         `json:"latest,omitempty"`
	URL             string         `json:"url,omitempty"`
	Status          string         `json:"status,omitempty"`
	ReleaseDate     string         `json:"release_date,omitempty"`
	File            string         `json:"file,omitempty"`
	URLHash         string         `json:"url_hash,omitempty"`
	Licenses        []Licenses     `json:"licenses,omitempty"`
	Health          Health         `json:"health,omitempty"`
	Provenance      string         `json:"provenance,omitempty"`
	Dependencies    []Dependencies `json:"dependencies,omitempty"`
	Copyrights      []interface{}  `json:"copyrights,omitempty"`
	Vulnerabilities []interface{}  `json:"vulnerabilities,omitempty"`
	Server          Server         `json:"server,omitempty"`
}

ResultEntry represents a scan result

type ScanResult

type ScanResult struct {
	FilePath string
	Response string
	Error    error
}

ScanResult groups file analysis results

type Server

type Server struct {
	Version   string    `json:"version,omitempty"`
	KbVersion KbVersion `json:"kb_version,omitempty"`
	Hostname  string    `json:"hostname,omitempty"`
	Flags     string    `json:"flags,omitempty"`
	Elapsed   string    `json:"elapsed,omitempty"`
}

Server represents server information

Jump to

Keyboard shortcuts

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