db

package
v1.10.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBCheck

func DBCheck(skipDbUpdate bool, forceDbUpdate bool)

Check if database file and metadata is exist from the local path, * when files are existing, it will check the latest version from the global metadata and it will compare from the local version to determine if needed to update.

func GetDB added in v1.9.0

func GetDB() *bun.DB

func Load added in v1.8.6

func Load()

Types

type Metadata

type Metadata struct {
	Build    int64  `json:"build,omitempty"`
	Schema   string `json:"schema,omitempty"`
	URL      string `json:"url,omitempty"`
	Checksum string `json:"checksum,omitempty"`
}

func GetLocalMetadata

func GetLocalMetadata() Metadata

Check and read the metadata from user cache directory.

type Store added in v1.9.0

type Store struct{}

func (*Store) ApkSecDBMatch added in v1.9.0

func (s *Store) ApkSecDBMatch(name string) *[]types.Vulnerability

func (*Store) ApkSecDBMatchByKeywords added in v1.9.0

func (s *Store) ApkSecDBMatchByKeywords(keywords []string) *[]types.Vulnerability

func (*Store) ApkSecDBMatchWithKeywordsAndDistroVersion added in v1.9.0

func (s *Store) ApkSecDBMatchWithKeywordsAndDistroVersion(keywords []string, version string) *[]types.Vulnerability

func (*Store) DebSecTrackerMatch added in v1.9.0

func (s *Store) DebSecTrackerMatch(name string) *[]types.Vulnerability

func (*Store) DebSecTrackerMatchWithKeywords added in v1.9.0

func (s *Store) DebSecTrackerMatchWithKeywords(keywords []string) *[]types.Vulnerability

func (*Store) DebSecTrackerMatchWithKeywordsAndDistroVersion added in v1.9.0

func (s *Store) DebSecTrackerMatchWithKeywordsAndDistroVersion(keywords []string, version string) *[]types.Vulnerability

func (*Store) GhsaDBMatchByKeywords added in v1.9.0

func (s *Store) GhsaDBMatchByKeywords(keywords []string) *[]types.Vulnerability

func (*Store) NVDMatchCVEsWithKeywords added in v1.10.0

func (s *Store) NVDMatchCVEsWithKeywords(keywords []string) *[]types.Vulnerability

func (*Store) NVDMatchWithKeywords added in v1.9.0

func (s *Store) NVDMatchWithKeywords(keywords []string) *[]types.Vulnerability

Jump to

Keyboard shortcuts

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