leases

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lease

type Lease struct {
	Mac   string
	Ip    string
	Begin time.Time
	End   time.Time
}

type Leases

type Leases []Lease

func ReadLeases

func ReadLeases(leaseFile string) (Leases, error)

func (Leases) FilterActive

func (l Leases) FilterActive() Leases

func (Leases) LatestByMac

func (l Leases) LatestByMac() map[string]Lease

type ReportItem

type ReportItem struct {
	Lease
	Log          *slog.Logger
	UUID         *string
	BmcVersion   *string
	BiosVersion  *string
	FRU          *models.V1MachineFru
	Powerstate   *string
	IndicatorLED *string
	PowerMetric  *models.V1PowerMetric
}

func (*ReportItem) EnrichWithBMCDetails

func (i *ReportItem) EnrichWithBMCDetails(ipmiPort int, ipmiUser, ipmiPassword string)

Jump to

Keyboard shortcuts

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