ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProgressBarFinish added in v0.1.0

func ProgressBarFinish(bar ProgressBar)

func RenderDetectionCVEs added in v0.1.0

func RenderDetectionCVEs(execution *core.Execution, cves []*core.CVE)

func RenderDetectionResults

func RenderDetectionResults(detection *core.Detection, err error)

Render results of the given detection

Types

type ProgressBar added in v0.1.0

type ProgressBar struct {
	ProgressBar *pb.ProgressBar
	Reader      io.Reader
}

func ProgressBarStart added in v0.1.0

func ProgressBarStart(r io.Reader, total int64) ProgressBar

type UiDetectionVertex

type UiDetectionVertex struct {
	// contains filtered or unexported fields
}

func NewDetectionVertex

func NewDetectionVertex(versions []*semver.Version) *UiDetectionVertex

func (*UiDetectionVertex) RenderExcludedLine

func (vertex *UiDetectionVertex) RenderExcludedLine(excludedVersions []*semver.Version)

Render all excluded rules on single line (bottom)

func (*UiDetectionVertex) RenderHeader

func (vertex *UiDetectionVertex) RenderHeader()

Render vertex header with major versions numbers

func (*UiDetectionVertex) RenderMatchingLine

func (vertex *UiDetectionVertex) RenderMatchingLine(constraint *semver.Constraints)

Render a detected rule line

func (*UiDetectionVertex) RenderPossibleVersions

func (vertex *UiDetectionVertex) RenderPossibleVersions(possibleVersions []*semver.Version)

Render footer, with possible versions

Jump to

Keyboard shortcuts

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