Documentation ¶
Index ¶
- Variables
- func GetSqueue(t time.Time) tea.Msg
- func NewCmdCC(config config.ConfigContainer)
- func NewMenu(selJobState string, l *log.Logger) list.Model
- func QuickGetSqueue(l *log.Logger) tea.Cmd
- func TimedGetSqueue(l *log.Logger) tea.Cmd
- type Breakdowns
- type JobMenuOptions
- type JobTab
- type Keys
- type MenuItem
- type MenuOptions
- type SqueueJSON
- type Stats
- type TableRows
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyMap = Keys{ &keybindings.DefaultKeyMap.Up: true, &keybindings.DefaultKeyMap.Down: true, &keybindings.DefaultKeyMap.PageUp: true, &keybindings.DefaultKeyMap.PageDown: true, &keybindings.DefaultKeyMap.Slash: true, &keybindings.DefaultKeyMap.Info: true, &keybindings.DefaultKeyMap.Enter: true, &keybindings.DefaultKeyMap.Stats: true, &keybindings.DefaultKeyMap.Count: true, }
View Source
var MenuList = JobMenuOptions{ "PENDING": MenuOptions{ MenuItem{ // contains filtered or unexported fields }, MenuItem{ // contains filtered or unexported fields }, MenuItem{ // contains filtered or unexported fields }, }, "RUNNING": MenuOptions{ MenuItem{ // contains filtered or unexported fields }, MenuItem{ // contains filtered or unexported fields }, MenuItem{ // contains filtered or unexported fields }, MenuItem{ // contains filtered or unexported fields }, }, }
View Source
var (
SqueueCmdSwitches = []string{"-a", "--json"}
)
View Source
var SqueueTabCols = []table.Column{
{
Title: "Job ID",
Width: 10,
},
{
Title: "Job Name",
Width: 60,
},
{
Title: "Account",
Width: 10,
},
{
Title: "User Name",
Width: 20,
},
{
Title: "Job State",
Width: 10,
},
{
Title: "Priority",
Width: 10,
},
}
Functions ¶
func NewCmdCC ¶
func NewCmdCC(config config.ConfigContainer)
Types ¶
type Breakdowns ¶
type Breakdowns struct { Top5user generic.CountItemSlice Top5acc generic.CountItemSlice JobPerQos generic.CountItemSlice JobPerPart generic.CountItemSlice }
type JobMenuOptions ¶
type JobMenuOptions map[string]MenuOptions
type JobTab ¶
type JobTab struct { InfoOn bool CountsOn bool StatsOn bool FilterOn bool SqueueTable table.Model Squeue SqueueJSON SqueueFiltered SqueueJSON Filter textinput.Model SelectedJob string SelectedJobState string MenuOn bool MenuChoice MenuItem Menu list.Model Stats Breakdowns }
func (*JobTab) GetStatsFiltered ¶
type MenuItem ¶
type MenuItem struct {
// contains filtered or unexported fields
}
func (MenuItem) Description ¶
func (*MenuItem) ExecMenuItem ¶
func (MenuItem) FilterValue ¶
type MenuOptions ¶
type SqueueJSON ¶
type SqueueJSON slurm.SqueueJSON
func (*SqueueJSON) FilterSqueueTable ¶
func (sqJson *SqueueJSON) FilterSqueueTable(f string, l *log.Logger) (*TableRows, *SqueueJSON, *command.ErrorMsg)
Click to show internal directories.
Click to hide internal directories.