Documentation ¶
Overview ¶
Package java provides a concrete Cataloger implementation for packages relating to the Java language ecosystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArchiveCataloger ¶ added in v0.95.0
func NewArchiveCataloger(cfg ArchiveCatalogerConfig) *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
NewGradleLockfileCataloger returns a cataloger capable of parsing dependencies from a gradle.lockfile file. Note: Older versions of lockfiles aren't supported yet
func NewNativeImageCataloger ¶ added in v0.66.0
newNativeImageCataloger returns a new Native Image cataloger object.
func NewPomCataloger ¶ added in v0.95.0
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 ArchiveCatalogerConfig ¶ added in v0.98.0
type ArchiveCatalogerConfig struct { cataloging.ArchiveSearchConfig `yaml:",inline" json:"" mapstructure:",squash"` UseNetwork bool `yaml:"use-network" json:"use-network" mapstructure:"use-network"` MavenBaseURL string `yaml:"maven-base-url" json:"maven-base-url" mapstructure:"maven-base-url"` MaxParentRecursiveDepth int `yaml:"max-parent-recursive-depth" json:"max-parent-recursive-depth" mapstructure:"max-parent-recursive-depth"` }
func DefaultArchiveCatalogerConfig ¶ added in v0.98.0
func DefaultArchiveCatalogerConfig() ArchiveCatalogerConfig
func (ArchiveCatalogerConfig) WithArchiveTraversal ¶ added in v0.98.0
func (j ArchiveCatalogerConfig) WithArchiveTraversal(search cataloging.ArchiveSearchConfig, maxDepth int) ArchiveCatalogerConfig
func (ArchiveCatalogerConfig) WithMavenBaseURL ¶ added in v0.98.0
func (j ArchiveCatalogerConfig) WithMavenBaseURL(input string) ArchiveCatalogerConfig
func (ArchiveCatalogerConfig) WithUseNetwork ¶ added in v0.98.0
func (j ArchiveCatalogerConfig) WithUseNetwork(input bool) ArchiveCatalogerConfig
type LockfileDependency ¶ added in v0.77.0
Dependency represents a single dependency in the gradle.lockfile file
type NativeImageCataloger ¶ added in v0.66.0
type NativeImageCataloger struct{}
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