utils

package
v0.0.0-...-d28c279 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJGF

func CreateJGF(filename string, label *string) error

func ParseAllocResult

func ParseAllocResult(allocated string) []allocation

func PrintOutput

func PrintOutput(reserved bool, allocated string, at int64, overhead float64, jobid uint64, fluxerr int)

//// Utility functions

Types

type CancelRequest

type CancelRequest struct {
	JobID int64
}

type CancelResponse

type CancelResponse struct {
	JobID int64
	Error int32
}

type MatchRequest

type MatchRequest struct {
	Ps      PodSpec
	Request string
	Count   int32
}

type MatchResponse

type MatchResponse struct {
	PodID    string
	Nodelist []*NodeAlloc
	JobID    int64
}

type NodeAlloc

type NodeAlloc struct {
	NodeID string
	Tasks  int32
}

type NodeStatus

type NodeStatus struct {
	CpuAvail     int32
	GpuAvail     int32
	StorageAvail int64
	MemoryAvail  int64
	AllowedPods  int64
	NodeIP       string
	Replication  int32
}

The Nodes/Cluster Update Status

type PodSpec

type PodSpec struct {
	Id        string
	Container string
	Cpu       int32
	Memory    int64
	Gpu       int64
	Storage   int64
	Labels    []string
}

Jump to

Keyboard shortcuts

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