jar

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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

This section is empty.

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 NewParser

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

func (*Parser) Parse

type Properties

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

func (Properties) Package

func (p Properties) Package() ftypes.Package

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