util

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "undefined"
	GitSha  = "undefined"
	Release = "false"
	Dirty   = "true"
)

Functions

func CombineReports

func CombineReports(reports []*types.InventoryReport) types.InventoryReport

func FilterReport added in v0.15.0

func FilterReport(report *types.InventoryReport, filter ReportFilter) *types.InventoryReport

func RemainingDays

func RemainingDays(eolDate time.Time) int

func ReportToTable

func ReportToTable(report types.InventoryReport) [][]string

func VersionString

func VersionString() (string, error)

Types

type ReportFilter added in v0.15.0

type ReportFilter struct {
	ResourceKinds []types.ResourceKind // TODO: Support logical operators
	ParentKinds   []types.ResourceKind
	ParentIDs     []string
	IDs           []string
	Status        []types.Status
	Version       string
}

func CreateFilter added in v0.15.0

func CreateFilter(f []string) ReportFilter

Jump to

Keyboard shortcuts

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