jar

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArtifactNotFoundErr = xerrors.New("no artifact found")

Functions

func NewParser

func NewParser(c Client, opts ...Option) types.Parser

Types

type Client

type Client interface {
	Exists(groupID, artifactID string) (bool, error)
	SearchBySHA1(sha1 string) (Properties, error)
	SearchByArtifactID(artifactID, version string) (string, error)
}

type Option

type Option func(*Parser)

func WithFilePath

func WithFilePath(filePath string) Option

func WithOffline

func WithOffline(offline bool) Option

func WithSize

func WithSize(size int64) Option

type Parser

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

func (*Parser) Parse

func (p *Parser) Parse(r xio.ReadSeekerAt) ([]types.Library, []types.Dependency, error)

type Properties

type Properties struct {
	GroupID    string
	ArtifactID string
	Version    string
	FilePath   string // path to file containing these props
}

func (Properties) Library

func (p Properties) Library() types.Library

func (Properties) String

func (p Properties) String() string

func (Properties) Valid

func (p Properties) Valid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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