Documentation ¶
Index ¶
Constants ¶
View Source
const DATE_FORMAT = "2006/01/02 15:04:05"
View Source
const LEASE_REGEX = `` /* 159-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leases ¶
type Leases []Lease
func ReadLeases ¶
func (Leases) FilterActive ¶
func (Leases) LatestByMac ¶
type ReportItem ¶
type ReportItem struct { Lease Log *zap.SugaredLogger UUID *string BmcVersion *string BiosVersion *string FRU *models.V1MachineFru Powerstate *string IndicatorLED *string PowerMetric *models.V1PowerMetric }
func NewReportItem ¶
func NewReportItem(l Lease, log *zap.SugaredLogger) *ReportItem
func (*ReportItem) EnrichWithBMCDetails ¶
func (i *ReportItem) EnrichWithBMCDetails(ipmiPort int, ipmiUser, ipmiPassword string)
func (*ReportItem) MacContainedIn ¶
func (i *ReportItem) MacContainedIn(macs []string) bool
Click to show internal directories.
Click to hide internal directories.