helpers

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProductEOL

func CheckProductEOL(product string, version string) (bool, string, error)

func ExportToFile

func ExportToFile(outputData []byte, outputFolder string) error

func FilterVersions

func FilterVersions(outputData []byte, minVersion, maxVersion string) ([]byte, error)

func GetAvailableProducts

func GetAvailableProducts(output string) ([]byte, error)

func GetProduct

func GetProduct(product string, version string) ([]byte, error)

func GetStringValue

func GetStringValue(value interface{}) string

func IsWithinRange

func IsWithinRange(cycle, minVersion, maxVersion string) bool

Helper function to check if a cycle is within a given range

Types

type ApiResponse

type ApiResponse struct {
	Cycle             string `json:"cycle"`
	ReleaseDate       string `json:"releaseDate"`
	EOL               EOL    `json:"eol"`
	Latest            string `json:"latest"`
	LatestReleaseDate string `json:"latestReleaseDate"`
	LTS               bool   `json:"lts"`
}

type EOL

type EOL struct {
	Value interface{} `json:"eol"`
}

func (*EOL) UnmarshalJSON

func (e *EOL) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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