registry

package
v0.2.100 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AugmentMap

func AugmentMap[K comparable, V any](targ, src map[K]V)

AugmentMap includes all of src into targ.

func New

func New() *cobra.Command

Types

type ErrUnsupportedPath

type ErrUnsupportedPath string

func (ErrUnsupportedPath) Error

func (e ErrUnsupportedPath) Error() string

type ImgInfo

type ImgInfo struct {
	Org   string
	OrgID string
	App   string
	Mach  string
	Path  string
}

ImgInfo carries image information for a machine.

func SortedKeys

func SortedKeys[V any](m map[ImgInfo]V) []ImgInfo

SortedKeys returns the keys in a map in sorted order. Could be made generic.

func (ImgInfo) Compare

func (a ImgInfo) Compare(b ImgInfo) int

type Scan

type Scan struct {
	SchemaVersion int
	CreatedAt     string
	// Metadata
	Results []ScanResult
}

type ScanResult

type ScanResult struct {
	Target          string
	Type            string
	Vulnerabilities []ScanVuln
}

type ScanVuln

type ScanVuln struct {
	VulnerabilityID  string
	PkgName          string
	InstalledVersion string
	Status           string
	Title            string
	Description      string
	Severity         string
}

type Unit

type Unit struct{}

type VulnFilter

type VulnFilter struct {
	SeverityLevel int
	VulnIds       map[string]bool
}

func (*VulnFilter) IsSpecified

func (p *VulnFilter) IsSpecified() bool

Jump to

Keyboard shortcuts

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