Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Width of the SinfoTable, used in calculating Stats box width. // Must be adjusted alongside SinfoTabCols changes. //SinfoTabWidth = 118 SinfoTabWidth = 134 )
Variables ¶
View Source
var KeyMap = Keys{ &keybindings.DefaultKeyMap.Up, &keybindings.DefaultKeyMap.Down, &keybindings.DefaultKeyMap.PageUp, &keybindings.DefaultKeyMap.PageDown, &keybindings.DefaultKeyMap.Slash, &keybindings.DefaultKeyMap.Stats, &keybindings.DefaultKeyMap.Count, }
View Source
var (
SinfoCmdSwitches = []string{"-a", "--json"}
)
View Source
var SinfoTabCols = []table.Column{
{
Title: "Name",
Width: 15,
},
{
Title: "Part.",
Width: 5,
},
{
Title: "State",
Width: 10,
},
{
Title: "CPUAvail",
Width: 8,
},
{
Title: "CPUTotal",
Width: 8,
},
{
Title: "MEMAvail",
Width: 10,
},
{
Title: "MEMTotal",
Width: 10,
},
{
Title: "GPUAvail",
Width: 8,
},
{
Title: "GPUTotal",
Width: 8,
},
{
Title: "State FLAGS",
Width: 15,
},
}
View Source
var SinfoTabRows = []table.Row{}
TODO: not sure what i was thinking, but this we really don't need, just inject in Update() directly to model!?
Functions ¶
func NewCmdCC ¶
func NewCmdCC(config config.ConfigContainer)
Types ¶
type Breakdowns ¶
type Breakdowns struct {
CpuPerPart generic.CountItemSlice
MemPerPart generic.CountItemSlice
GpuPerPart generic.CountItemSlice
NodesPerState generic.CountItemSlice
}
type ClusterTab ¶
type ClusterTab struct {
StatsOn bool
CountsOn bool
FilterOn bool
SinfoTable table.Model
CpuBar progress.Model
MemBar progress.Model
GpuBar progress.Model
Sinfo SinfoJSON
SinfoFiltered SinfoJSON
Filter textinput.Model
Stats
Breakdowns
}
func (*ClusterTab) AdjTableHeight ¶
func (t *ClusterTab) AdjTableHeight(h int, l *log.Logger)
func (*ClusterTab) ClusterTabStats ¶
func (ct *ClusterTab) ClusterTabStats(l *log.Logger) string
func (*ClusterTab) GetStatsFiltered ¶
func (t *ClusterTab) GetStatsFiltered(l *log.Logger)
type Keys ¶
func (*Keys) DisableKeys ¶ added in v1.0.5
func (ky *Keys) DisableKeys()
Click to show internal directories.
Click to hide internal directories.