qtop

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(top *Top, scr tcell.Screen, config Config) *App

func (*App) Quit

func (app *App) Quit()

func (*App) Start

func (app *App) Start() error

type ClusterSummary

type ClusterSummary struct {
	RunningJobs int
	WaitingJobs int
	UsedSlots   int
	FreeSlots   int
}

func SummarizeCluster

func SummarizeCluster(nodes []torque.Node, jobs []torque.Job) ClusterSummary

type Config

type Config struct {
	Interval time.Duration
}

type JobSummary

type JobSummary struct {
	Name          string
	Owner         string
	State         string
	Count         int
	Occupancy     int
	HostOccupancy map[string]int
	MinWalltime   int
	MaxWalltime   int
	CPUUsage      float64
	IDs           []string
}

func SummarizeJobs

func SummarizeJobs(jobs []torque.Job) []JobSummary

type NodeOwnerSummary added in v0.2.0

type NodeOwnerSummary struct {
	Owner     string
	Occupancy int
}

type NodeSummary

type NodeSummary struct {
	Name       string
	Active     bool
	AvailSlots int
	UsedSlots  int
	Owners     []NodeOwnerSummary
}

func SummarizeNodes

func SummarizeNodes(nodes []torque.Node, jobs []torque.Job) []NodeSummary

type Summary

type Summary struct {
	Cluster ClusterSummary
	Nodes   []NodeSummary
	Jobs    []JobSummary
}

func Summarize

func Summarize(nodes []torque.Node, jobs []torque.Job) Summary

type Top

type Top struct {
	// contains filtered or unexported fields
}

func NewTop

func NewTop(conn torque.Conn) *Top

func (*Top) Current

func (top *Top) Current() *Summary

func (*Top) Update

func (top *Top) Update() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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