Documentation ¶
Index ¶
- Variables
- func CallSbatch(jobfile string, l *log.Logger) tea.Cmd
- func CallScancel(jobid string, l *log.Logger) tea.Cmd
- func CallScontrolHold(jobid string, l *log.Logger) tea.Cmd
- func CallScontrolRequeue(jobid string, l *log.Logger) tea.Cmd
- func CallSsh(node string, l *log.Logger) tea.Cmd
- func GetUserAssoc(u string, l *log.Logger) tea.Cmd
- func GetUserName(l *log.Logger) tea.Cmd
- func NewCmdCC(config config.ConfigContainer)
- type ErrorMsg
- type SBatchSent
- type SHoldSent
- type SRequeueSent
- type ScancelSent
- type SshCompleted
- type UserAssoc
- type UserName
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SacctJobCmdSwitches = []string{"-n", "--json", "-j"} ScancelJobCmdSwitches = []string{} SholdJobCmdSwitches = []string{"hold"} SrequeueJobCmdSwitches = []string{"requeue"} SbatchCmdSwitches = []string{} SacctmgrCmdSwitches = []string{"list", "Association", "format=account", "-P", "-n"} )
Functions ¶
func CallSbatch ¶
TODO: unify this to a single function
func CallScontrolRequeue ¶
TODO: unify this to a single function
func GetUserAssoc ¶
GetUserAssoc returns a list of associations between current username and slurm accounts. Used later in sacct --json call to fetch users job history
func GetUserName ¶
GetUserName returns the linux username string. Used to call sacctmgr and fetch users associations.
func NewCmdCC ¶
func NewCmdCC(config config.ConfigContainer)
NewCmdCC sets the package variable ConfigContainer to the values from config files/defaults. To be used in the package locally without being passed around. Not the smartest choice, consider refactoring later.
Types ¶
type SBatchSent ¶
type SBatchSent struct {
JobFile string
}
type SRequeueSent ¶
type SRequeueSent struct {
Jobid string
}
type ScancelSent ¶
type ScancelSent struct {
Jobid string
}
type SshCompleted ¶
type SshCompleted struct {
SshNode string
}
Click to show internal directories.
Click to hide internal directories.