Documentation ¶
Index ¶
- func DBCheck(skipDbUpdate bool, forceDbUpdate bool)
- func GetDB() *bun.DB
- func Load()
- type Metadata
- type Store
- func (s *Store) ApkSecDBMatch(name string) *[]types.Vulnerability
- func (s *Store) ApkSecDBMatchByKeywords(keywords []string) *[]types.Vulnerability
- func (s *Store) ApkSecDBMatchWithKeywordsAndDistroVersion(keywords []string, version string) *[]types.Vulnerability
- func (s *Store) DebSecTrackerMatch(name string) *[]types.Vulnerability
- func (s *Store) DebSecTrackerMatchWithKeywords(keywords []string) *[]types.Vulnerability
- func (s *Store) DebSecTrackerMatchWithKeywordsAndDistroVersion(keywords []string, version string) *[]types.Vulnerability
- func (s *Store) GhsaDBMatchByKeywords(keywords []string) *[]types.Vulnerability
- func (s *Store) NVDMatchCVEsWithKeywords(keywords []string) *[]types.Vulnerability
- func (s *Store) NVDMatchWithKeywords(keywords []string) *[]types.Vulnerability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.