javadb

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersion = db.SchemaVersion
)

Variables

View Source
var DefaultRepository = fmt.Sprintf("%s:%d", "ghcr.io/aquasecurity/trivy-java-db", SchemaVersion)

Functions

func Init

func Init(cacheDir string, javaDBRepository name.Reference, skip, quiet bool, registryOption ftypes.RegistryOptions)

func Update

func Update() error

Types

type DB

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

func NewClient

func NewClient() (*DB, error)

func (*DB) Close added in v0.46.0

func (d *DB) Close() error

func (*DB) Exists

func (d *DB) Exists(groupID, artifactID string) (bool, error)

func (*DB) SearchByArtifactID

func (d *DB) SearchByArtifactID(artifactID, version string) (string, error)

func (*DB) SearchBySHA1

func (d *DB) SearchBySHA1(sha1 string) (jar.Properties, error)

type Updater

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

func (*Updater) Update

func (u *Updater) Update() error

Jump to

Keyboard shortcuts

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