endoflifedate

package
v0.111.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, pw progress.Writer, httpClient *http.Client) error

Types

type Checker added in v0.102.0

type Checker struct{}

func NewChecker added in v0.102.0

func NewChecker() Checker

func (Checker) DaysUntilEndOfLife added in v0.102.0

func (c Checker) DaysUntilEndOfLife(resp []client.Cycle, product, cycle string) (float64, bool)

func (Checker) DaysUntilUnsupported added in v0.102.0

func (c Checker) DaysUntilUnsupported(resp []client.Cycle, product, cycle string) (float64, bool)

func (Checker) EndOfLifeFrom added in v0.102.0

func (Checker) EndOfLifeFrom(resp []client.Cycle, product, cycle string) (time.Time, bool)

func (Checker) SupportedUntil added in v0.102.0

func (Checker) SupportedUntil(resp []client.Cycle, product, cycle string) (time.Time, bool)

type Cycle

type Cycle struct {
	// Cycle Release Cycle, i.e. `19`, `22.04`
	Cycle string
	// SupportedUntil Date supported until
	SupportedUntil string
	// IsSupported indicates whether the Cycle has a `support: false` or `support: true`
	IsSupported *bool
	// EolFrom End of Life Date for this release cycle
	EolFrom string
	// IsEOL indicates whether the Cycle has an `eol: false` or `eol: true`
	IsEOL *bool
}

func (Cycle) IsEol

func (c Cycle) IsEol() bool

IsEol Whether the cycle is End Of Life (EOL)

func (Cycle) IsUnsupported

func (c Cycle) IsUnsupported() bool

IsUnsupported whether the cycle is still actively supported

type EndOfLifeDate added in v0.15.1

type EndOfLifeDate struct{}

func (*EndOfLifeDate) CreateTables added in v0.15.1

func (*EndOfLifeDate) CreateTables(ctx context.Context, sqlDB *sql.DB) error

func (*EndOfLifeDate) Name added in v0.100.0

func (*EndOfLifeDate) Name() string

type Product

type Product struct {
	Name string
}

type Renovate

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

func NewRenovate

func NewRenovate(sqlDB *sql.DB, theClient *client.ClientWithResponses, logger *slog.Logger) Renovate

func (Renovate) ProcessDependency

func (r Renovate) ProcessDependency(ctx context.Context, tx *sql.Tx, dep db.RetrieveDistinctRenovateDepsRow) error

func (Renovate) RetrieveEOLStatus

func (r Renovate) RetrieveEOLStatus(ctx context.Context, dep db.RetrieveDistinctRenovateDepsRow) (p Product, c Cycle, ok bool)

type SBOM added in v0.43.0

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

func NewSBOM added in v0.43.0

func NewSBOM(sqlDB *sql.DB, theClient *client.ClientWithResponses, logger *slog.Logger) SBOM

func (SBOM) ProcessDependency added in v0.43.0

func (r SBOM) ProcessDependency(ctx context.Context, tx *sql.Tx, dep db.RetrieveDistinctSBOMDepsRow) error

func (SBOM) RetrieveEOLStatus added in v0.43.0

func (r SBOM) RetrieveEOLStatus(ctx context.Context, dep db.RetrieveDistinctSBOMDepsRow) (p Product, c Cycle, ok bool)

Directories

Path Synopsis
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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