Documentation ¶
Index ¶
- Variables
- func GetSacctHist(uaccs string, start string, end string, t uint, l *log.Logger) tea.Cmd
- func NewCmdCC(config config.ConfigContainer)
- func NewUserInputs(t uint, starttime string, endtime string) generic.UserInputs
- type Breakdowns
- type JobHistTab
- type JobHistTabMsg
- type Keys
- type SacctJSON
- type Stats
- type TableRows
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyMap = Keys{ &keybindings.DefaultKeyMap.Up, &keybindings.DefaultKeyMap.Down, &keybindings.DefaultKeyMap.PageUp, &keybindings.DefaultKeyMap.PageDown, &keybindings.DefaultKeyMap.Slash, &keybindings.DefaultKeyMap.Refresh, &keybindings.DefaultKeyMap.TimeRange, &keybindings.DefaultKeyMap.Enter, &keybindings.DefaultKeyMap.Stats, &keybindings.DefaultKeyMap.Count, }
View Source
var (
SacctHistCmdSwitches = []string{"-n", "--json"}
)
View Source
var SacctTabCols = []table.Column{
{
Title: "Job ID",
Width: 10,
},
{
Title: "Job Name",
Width: 35,
},
{
Title: "Part.",
Width: 5,
},
{
Title: "QoS",
Width: 10,
},
{
Title: "Account",
Width: 10,
},
{
Title: "User",
Width: 15,
},
{
Title: "Nodes",
Width: 20,
},
{
Title: "State",
Width: 10,
},
}
Functions ¶
func GetSacctHist ¶
func NewCmdCC ¶
func NewCmdCC(config config.ConfigContainer)
func NewUserInputs ¶ added in v1.0.5
func NewUserInputs(t uint, starttime string, endtime string) generic.UserInputs
Types ¶
type Breakdowns ¶
type Breakdowns struct { Top5user generic.CountItemSlice Top5acc generic.CountItemSlice JobPerQos generic.CountItemSlice JobPerPart generic.CountItemSlice }
type JobHistTab ¶
type JobHistTab struct { StatsOn bool CountsOn bool FilterOn bool UserInputsOn bool // allow user to add/modify parameters for slurm commands HistFetched bool // signals View() if sacct call is finished, to print "waiting for..." message HistFetchFail bool // if sacct call times out/errors, this is set to true JobHistStart string JobHistEnd string JobHistTimeout uint SacctTable table.Model SacctHist SacctJSON SacctHistFiltered SacctJSON Filter textinput.Model UserInputs generic.UserInputs Stats Breakdowns }
func (*JobHistTab) AdjTableHeight ¶
func (t *JobHistTab) AdjTableHeight(h int, l *log.Logger)
func (*JobHistTab) GetStatsFiltered ¶
func (t *JobHistTab) GetStatsFiltered(l *log.Logger)
func (*JobHistTab) JobHistTabStats ¶
func (jh *JobHistTab) JobHistTabStats(l *log.Logger) string
type JobHistTabMsg ¶
type Keys ¶
func (*Keys) DisableKeys ¶ added in v1.0.5
func (ky *Keys) DisableKeys()
Click to show internal directories.
Click to hide internal directories.