Documentation ¶ Index ¶ type Scanner func NewScanner(t Type) *Scanner func (s *Scanner) Detect(ctx context.Context, osVer string, _ *ftypes.Repository, pkgs []ftypes.Package) ([]types.DetectedVulnerability, error) func (s *Scanner) IsSupportedVersion(ctx context.Context, osFamily ftypes.OSType, osVer string) bool type Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Scanner ¶ type Scanner struct { // contains filtered or unexported fields } Scanner implements the SUSE scanner func NewScanner ¶ func NewScanner(t Type) *Scanner NewScanner is the factory method for Scanner func (*Scanner) Detect ¶ func (s *Scanner) Detect(ctx context.Context, osVer string, _ *ftypes.Repository, pkgs []ftypes.Package) ([]types.DetectedVulnerability, error) Detect scans and returns the vulnerabilities func (*Scanner) IsSupportedVersion ¶ func (s *Scanner) IsSupportedVersion(ctx context.Context, osFamily ftypes.OSType, osVer string) bool IsSupportedVersion checks if OSFamily can be scanned using SUSE scanner type Type ¶ added in v0.13.0 type Type int Type defines SUSE type const ( // SUSEEnterpriseLinux is Linux Enterprise version SUSEEnterpriseLinux Type = iota // SUSE Linux Enterprise Micro is the micro series SUSEEnterpriseLinuxMicro // OpenSUSE for open versions OpenSUSE OpenSUSETumbleweed ) Source Files ¶ View all Source files suse.go Click to show internal directories. Click to hide internal directories.