java

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package java provides a concrete Cataloger implementation for Java archives (jar, war, ear, jpi, hpi formats).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cataloger

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

Cataloger catalogs pkg.JavaPkg and pkg.JenkinsPluginPkg Package Types defined in java archive files.

func New

func New() *Cataloger

New returns a new Java archive cataloger object.

func (*Cataloger) Catalog

func (a *Cataloger) Catalog(contents map[file.Reference]string) ([]pkg.Package, error)

Catalog returns the Packages indexed from all Java archive files discovered.

func (*Cataloger) Name

func (a *Cataloger) Name() string

Name returns a string that uniquely describes this cataloger.

func (*Cataloger) SelectFiles

func (a *Cataloger) SelectFiles(resolver scope.FileResolver) []file.Reference

SelectFiles returns a set of discovered Java archive files from the user content source.

Jump to

Keyboard shortcuts

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