calloc

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

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

func StartTerminal(shellPath string,
	cancelRequestChannel chan bool,
	terminalExitChannel chan bool)

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL