javadb

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package javadb implements functions that wrap trivy-java-db module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateJavaDB

func UpdateJavaDB(trivyOpts config.TrivyOpts, noProgress bool) error

UpdateJavaDB updates Trivy Java DB

Types

type DBClient

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

DBClient is Trivy Java DB Client

func NewClient

func NewClient(cacheDBDir string) (*DBClient, error)

NewClient returns Trivy Java DB Client

func (*DBClient) Close

func (client *DBClient) Close() error

Close closes Trivy Java DB Client

func (*DBClient) SearchBySHA1

func (client *DBClient) SearchBySHA1(sha1 string) (jar.Properties, error)

SearchBySHA1 searches Jar Property by SHA1

Jump to

Keyboard shortcuts

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