Documentation
¶
Index ¶
- Variables
- func MainCalloc(cmd *cobra.Command, args []string) util.CraneCmdError
- func ParseCmdArgs()
- func ReplyReceiveRoutine(stream protos.CraneForeD_CallocStreamClient, ...)
- func StartCallocStream(task *protos.TaskToCtld) util.CraneCmdError
- func StartTerminal(shellPath string, cancelRequestChannel chan bool, ...)
- type GlobalVariables
- type ReplyReceiveItem
- type StateOfCalloc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlagNodes uint32 FlagCpuPerTask float64 FlagNtasksPerNode uint32 FlagTime string FlagMem string FlagPartition string FlagJob string FlagAccount string FlagQos string FlagCwd string FlagGres string FlagNodelist string FlagExcludes string FlagGetUserEnv bool FlagExport string FlagConfigFilePath string FlagDebugLevel string RootCmd = &cobra.Command{ Use: "calloc", Short: "Allocate resource and create terminal", Version: util.Version(), Args: cobra.ExactArgs(0), PersistentPreRun: func(cmd *cobra.Command, args []string) { util.DetectNetworkProxy() }, Run: func(cmd *cobra.Command, args []string) { if err := MainCalloc(cmd, args); err != util.ErrorSuccess { os.Exit(err) } }, } )
Functions ¶
func MainCalloc ¶
func MainCalloc(cmd *cobra.Command, args []string) util.CraneCmdError
func ParseCmdArgs ¶
func ParseCmdArgs()
func ReplyReceiveRoutine ¶
func ReplyReceiveRoutine(stream protos.CraneForeD_CallocStreamClient, replyChannel chan ReplyReceiveItem)
func StartCallocStream ¶
func StartCallocStream(task *protos.TaskToCtld) util.CraneCmdError
func StartTerminal ¶
Types ¶
type GlobalVariables ¶
type GlobalVariables struct {
// contains filtered or unexported fields
}
type ReplyReceiveItem ¶
type ReplyReceiveItem struct {
// contains filtered or unexported fields
}
type StateOfCalloc ¶
type StateOfCalloc int
const ( ConnectCfored StateOfCalloc = 0 ReqTaskId StateOfCalloc = 1 WaitRes StateOfCalloc = 2 TaskRunning StateOfCalloc = 3 TaskKilling StateOfCalloc = 4 WaitAck StateOfCalloc = 5 )
Click to show internal directories.
Click to hide internal directories.