Documentation
¶
Overview ¶
Package maven provides a registry client for Maven Central (Java).
Index ¶
- Constants
- func ParseCoordinates(coord string) (groupID, artifactID, version string)
- type Registry
- func (r *Registry) Ecosystem() string
- func (r *Registry) FetchDependencies(ctx context.Context, name, version string) ([]core.Dependency, error)
- func (r *Registry) FetchMaintainers(ctx context.Context, name string) ([]core.Maintainer, error)
- func (r *Registry) FetchPackage(ctx context.Context, name string) (*core.Package, error)
- func (r *Registry) FetchVersions(ctx context.Context, name string) ([]core.Version, error)
- func (r *Registry) URLs() core.URLBuilder
- type URLs
Constants ¶
View Source
const ( DefaultURL = "https://repo1.maven.org/maven2" SearchURL = "https://search.maven.org" )
Variables ¶
This section is empty.
Functions ¶
func ParseCoordinates ¶
ParseCoordinates parses a Maven coordinate string. Accepts both "groupId:artifactId" (traditional) and "groupId/artifactId" (PURL FullName) formats. Optionally includes version: "groupId:artifactId:version" or "groupId/artifactId/version"
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) FetchDependencies ¶
func (*Registry) FetchMaintainers ¶
func (*Registry) FetchPackage ¶
func (*Registry) FetchVersions ¶
func (*Registry) URLs ¶
func (r *Registry) URLs() core.URLBuilder
type URLs ¶
type URLs struct {
// contains filtered or unexported fields
}
func (*URLs) Documentation ¶
Click to show internal directories.
Click to hide internal directories.