jar

package
v1.3.3-rc6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: AGPL-3.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArtifactNotFoundErr = utils.Error("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

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

Jump to

Keyboard shortcuts

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