javadb

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SchemaVersion = db.SchemaVersion
)

Variables

View Source
var (
	// GitHub Container Registry
	DefaultGHCRRepository = fmt.Sprintf("%s:%d", "ghcr.io/khulnasoft/tunnel-java-db", SchemaVersion)

	// GCR mirrors
	DefaultGCRRepository = fmt.Sprintf("%s:%d", "mirror.gcr.io/khulnasoft/tunnel-java-db", SchemaVersion)
)

Functions

func Clear

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

func Init

func Init(cacheDir string, javaDBRepositories []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

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