maven

package
v0.0.0-...-9398901 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

maven Feed

This feed allows polling of package updates from central.sonatype, polling Maven central repository.

Configuration options

The packages field is not supported by the maven feed.

feeds:
- type: maven-central

Documentation

Index

Constants

View Source
const (
	FeedName = "maven-central"
)

Variables

View Source
var (
	ErrMaxRetriesReached = errors.New("maximum retries reached due to rate limiting")
)

Functions

This section is empty.

Types

type Feed

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

func New

func New(feedOptions feeds.FeedOptions) (*Feed, error)

func (Feed) GetFeedOptions

func (feed Feed) GetFeedOptions() feeds.FeedOptions

func (Feed) GetName

func (feed Feed) GetName() string

func (Feed) Latest

func (feed Feed) Latest(cutoff time.Time) ([]*feeds.Package, time.Time, []error)

type LatestVersionInfo

type LatestVersionInfo struct {
	Version             string `json:"version"`
	TimestampUnixWithMS int64  `json:"timestampUnixWithMS"`
}

Package represents package information.

type Package

type Package struct {
	Name              string            `json:"name"`
	Namespace         string            `json:"namespace"`
	LatestVersionInfo LatestVersionInfo `json:"latestVersionInfo"`
}

type Response

type Response struct {
	Components []Package `json:"components"`
}

Response represents the response structure from Sonatype API.

Jump to

Keyboard shortcuts

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