javadb

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

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 Clear added in v0.53.0

func Clear(ctx context.Context, cacheDir string) error

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