java

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 40 Imported by: 5

Documentation

Overview

Package java provides a concrete Cataloger implementation for packages relating to the Java language ecosystem.

Index

Constants

View Source
const MavenBaseURL = "https://repo1.maven.org/maven2"

Variables

This section is empty.

Functions

func NewArchiveCataloger added in v0.95.0

func NewArchiveCataloger(cfg Config) *generic.Cataloger

NewArchiveCataloger returns a new Java archive cataloger object for detecting packages with archives (jar, war, ear, par, sar, jpi, hpi, and native-image formats)

func NewGradleLockfileCataloger added in v0.95.0

func NewGradleLockfileCataloger() *generic.Cataloger

NewGradleLockfileCataloger returns a cataloger capable of parsing dependencies from a gradle.lockfile file. Note: Older versions of lockfiles aren't supported yet

func NewPomCataloger added in v0.95.0

func NewPomCataloger() *generic.Cataloger

NewPomCataloger returns a cataloger capable of parsing dependencies from a pom.xml file. Pom files list dependencies that maybe not be locally installed yet.

Types

type CatalogerOpts added in v0.95.0

type CatalogerOpts struct {
	UseNetwork              bool
	MavenURL                string
	MaxParentRecursiveDepth int
}

func DefaultCatalogerOpts added in v0.95.0

func DefaultCatalogerOpts() CatalogerOpts

func (CatalogerOpts) WithMavenURL added in v0.95.0

func (j CatalogerOpts) WithMavenURL(input string) CatalogerOpts

func (CatalogerOpts) WithMaxParentRecursiveDepth added in v0.95.0

func (j CatalogerOpts) WithMaxParentRecursiveDepth(input int) CatalogerOpts

func (CatalogerOpts) WithUseNetwork added in v0.95.0

func (j CatalogerOpts) WithUseNetwork(input bool) CatalogerOpts

type Config added in v0.35.0

type Config struct {
	SearchUnindexedArchives bool
	SearchIndexedArchives   bool
	UseNetwork              bool
	MavenBaseURL            string
	MaxParentRecursiveDepth int
}

type LockfileDependency added in v0.77.0

type LockfileDependency struct {
	Group   string
	Name    string
	Version string
}

Dependency represents a single dependency in the gradle.lockfile file

type NativeImageCataloger added in v0.66.0

type NativeImageCataloger struct{}

func NewNativeImageCataloger added in v0.66.0

func NewNativeImageCataloger() *NativeImageCataloger

newNativeImageCataloger returns a new Native Image cataloger object.

func (*NativeImageCataloger) Catalog added in v0.66.0

func (c *NativeImageCataloger) Catalog(resolver file.Resolver) ([]pkg.Package, []artifact.Relationship, error)

Catalog attempts to find any native image executables reachable from a resolver.

func (*NativeImageCataloger) Name added in v0.66.0

func (c *NativeImageCataloger) Name() string

Name returns a string that uniquely describes a native image cataloger

Jump to

Keyboard shortcuts

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