service

package
v0.0.0-...-b2c1e06 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRegistryNotFound   = errors.New("registry is not supported")
	ErrDependencyNotFound = errors.New("dependency not found")
)

Functions

This section is empty.

Types

type DependencyLookupService

type DependencyLookupService interface {
	// FetchPom fetches the pom file for a given coordinate from the registry
	FetchPom(registry string, coordinate model.GAV) (*model.PomProject, error)
	// CollectCoordinates is a helper function that returns all dependency coordinates for bom artifacts, otherwise it returns the input coordinate
	CollectCoordinates(registry string, coordinate model.GAV) ([]model.GAV, error)
	LookupProject(registry string, coordinate model.GAV) (*model.Dependency, error)
	LookupDependency(registry string, coordinate model.GAV) (*model.Dependency, error)
	LookupDependencyVersion(registry string, coordinate model.GAV) (*model.Version, error)
}

func NewDependencyLookupService

func NewDependencyLookupService(localDir, remoteURL string) DependencyLookupService

Jump to

Keyboard shortcuts

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