Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DriftDetail ¶
DriftDetail represents a single drift
type DriftItem ¶
type DriftItem struct {
ResourceType string
Project string
Name string
Location string
State string
Labels map[string]string
Drifts []DriftDetail
}
DriftItem represents a generic drift item for TUI display
type KeyMap ¶
type KeyMap struct {
NextTab key.Binding
PrevTab key.Binding
Up key.Binding
Down key.Binding
PageUp key.Binding
PageDown key.Binding
HalfPageUp key.Binding
HalfPageDown key.Binding
Quit key.Binding
}
KeyMap defines the keyboard shortcuts
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap returns the default keyboard shortcuts
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the TUI state
type ReportData ¶
type ReportData struct {
Title string
Timestamp time.Time
TotalResources int
DriftedResources int
Items []DriftItem
}
ReportData holds the complete report data for TUI
func FromGCEReport ¶
func FromGCEReport(report *gce.DriftReport) ReportData
FromGCEReport converts a GCE drift report to TUI format
func FromGKEReport ¶
func FromGKEReport(report *gke.DriftReport) ReportData
FromGKEReport converts a GKE drift report to TUI format
func FromSQLReport ¶
func FromSQLReport(report *sql.DriftReport) ReportData
FromSQLReport converts a SQL drift report to TUI format
Click to show internal directories.
Click to hide internal directories.