suse

package
v3.9.0-2857 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClock

func WithClock(c clock.Clock) option

Types

type Scanner

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

Scanner implements the SUSE scanner

func NewScanner

func NewScanner(t Type, opts ...option) *Scanner

NewScanner is the factory method for Scanner

func (*Scanner) Detect

func (s *Scanner) Detect(osVer string, _ *ftypes.Repository, pkgs []ftypes.Package) ([]types.DetectedVulnerability, error)

Detect scans and returns the vulnerabilities

func (*Scanner) IsSupportedVersion

func (s *Scanner) IsSupportedVersion(osFamily ftypes.OSType, osVer string) bool

IsSupportedVersion checks if OSFamily can be scanned using SUSE scanner

type Type

type Type int

Type defines SUSE type

const (
	// SUSEEnterpriseLinux is Linux Enterprise version
	SUSEEnterpriseLinux Type = iota
	// OpenSUSE for open versions
	OpenSUSE
)

Jump to

Keyboard shortcuts

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