endoflifedate

package
v0.94.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 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 Cycle

type Cycle struct {
	// Cycle Release Cycle, i.e. `19`, `22.04`
	Cycle string
	// SupportedUntil Date supported until
	SupportedUntil string
	// EolFrom End of Life Date for this release cycle
	EolFrom string
}

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

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