software

package
v0.0.0-...-86aec00 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

type Calculator interface {
	CalculateObsolescenceScore(software *Software) error
}

type CalculatorType

type CalculatorType string
const (
	// Augmented Semver: for softwares where minor versions are considered major versions (ex: kubernetes 1.21 -> 1.22)
	AugmentedSemverCalculator CalculatorType = "augmented-semver"
	CandidateCountCalculator  CalculatorType = "candidate-count"
	MetaCalculator            CalculatorType = "meta"
	ReleaseDateCalculator     CalculatorType = "release-date"
	SemverCalculator          CalculatorType = "semver"
	SkipCalculator            CalculatorType = "skip"
)

func ToCalculator

func ToCalculator(name string) (CalculatorType, error)

type Software

type Software struct {
	Calculator        CalculatorType
	CalculatedScore   int
	Dependencies      []*Software
	Name              string
	Type              SoftwareType
	Version           Version
	VersionCandidates []Version
}

type SoftwareType

type SoftwareType string

type SoftwaresToUpdate

type SoftwaresToUpdate struct {
	Softwares []Software
}

type Source

type Source interface {
	Load() ([]*Software, error)
	Name() string // return source name
}

type Version

type Version struct {
	Name        string
	Version     string
	ReleaseDate time.Time
}

func ToVersion

func ToVersion(v string, optsfn ...func(*Version)) *Version

type Versions

type Versions []*Version

func (*Versions) Deduplicate

func (vs *Versions) Deduplicate()

Jump to

Keyboard shortcuts

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