php

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutDateRatingNewMajorVersionAvailable         = 500
	OutDateRatingIndirectNewMajorVersionAvailable = 430
	OutDateRatingNewMinorVersionAvailable         = 400
	OutDateRatingNewPatchVersionAvailable         = 300
	OutDateRatingNoNewVersionAvailable            = 200
)
View Source
const (
	OutDateRatingMessageNewMajorVersionAvailable        = "New major version available"
	OutputRatingMessageIndirectNewMajorVersionAvailable = "Indirect new major version available"
	OutDateRatingMessageNewMinorVersionAvailable        = "New minor version available"
	OutDateRatingMessageNewPatchVersionAvailable        = "New patch version available"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OutDate

type OutDate struct {
	Name              string          `json:"name"`
	DirectDependency  bool            `json:"direct-dependency"`
	Homepage          string          `json:"homepage"`
	Source            string          `json:"source"`
	CurrentVersion    *helper.Version `json:"currentVersion"`
	Version           string          `json:"version"`
	ReleaseAge        string          `json:"release-age"`
	ReleaseDate       time.Time       `json:"release-date"`
	Latest            string          `json:"latest"`
	LatestVersion     *helper.Version `json:"latestVersion"`
	LatestStatus      string          `json:"latest-status"`
	LatestReleaseDate time.Time       `json:"latest-release-date"`
	Description       string          `json:"description"`
	Abandoned         bool            `json:"abandoned"`
	Rating            *OutDateRating  `json:"rating"`
}

func (*OutDate) NewMajorVersionAvailable

func (o *OutDate) NewMajorVersionAvailable() bool

func (*OutDate) NewMinorVersionAvailable

func (o *OutDate) NewMinorVersionAvailable() bool

func (*OutDate) NewPatchVersionAvailable

func (o *OutDate) NewPatchVersionAvailable() bool

func (*OutDate) ParseOutDate

func (o *OutDate) ParseOutDate() (*OutDate, error)

func (*OutDate) Rate

func (o *OutDate) Rate()

type OutDateRating

type OutDateRating struct {
	StatusCode int
	Message    string
}

Jump to

Keyboard shortcuts

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