ugego

package module
v0.0.0-...-da57104 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

README

ugego

GoDoc Go Report Card

Generic helper functions for accessing Univa Grid Engine out of the Go programming language. (Also consider sister projects like drmaa and drmaa2 for cluster monitoring and job submission)

pkg/log

Contains simple methods for creating a Grid Engine like logging.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QstatQueue

type QstatQueue struct {
	Name       string  `xml:"name"`
	QType      string  `xml:"qtype"`
	SlotsUsed  int     `xml:"slots_used"`
	SlotsResv  int     `xml:"slots_resv"`
	SlotsTotal int     `xml:"slots_total"`
	NPLoadAvg  float64 `xml:"np_load_avg"`
	Arch       string  `xml:"arch"`
	// state is only there if it is not available
	State string `xml:"state"`
}

QstatQueue represents an entries out of the qstat -f -xml .. command.

func Qstatf

func Qstatf(queueFilter string) ([]QstatQueue, error)

Qstatf executes a qstat -f -xml -q <queueFilter> and retuns an array of qstat queueinstances.

type QstatQueueInfoList

type QstatQueueInfoList struct {
	XMLName xml.Name `xml:"job_info"`
	// contains queue_info (qstat -f -xml)
	QueueList []QstatQueue `xml:"queue_info>Queue-List"`
}

QstatQueueInfoList is the representation of the qstat -f -xml .. output.

type UserList

type UserList struct {
	Name    string
	Type    string
	FShare  int
	OTicket int
	Entries []string
}

UserList is a Univa Grid Engine access control list or Department.

func GetUserLists

func GetUserLists(userlist ...string) ([]UserList, error)

GetUserLists calls qconf -su <listOfUl> and parses the output into UserList structs.

func ParseUserList

func ParseUserList(ul string) (userList *UserList, err error)

ParseUserList parses an Univa Grid Engine ACL by the given name into an struct. The expected structure of ul is a multiline string in the Univa Grid Engine format: name exclude type ACL fshare 0 oticket 0 entries daniel,root,%wheel

Directories

Path Synopsis
Godeps
_workspace/src/github.com/ActiveState/tail/ratelimiter
Package ratelimiter implements the Leaky Bucket ratelimiting algorithm with memcached and in-memory backends.
Package ratelimiter implements the Leaky Bucket ratelimiting algorithm with memcached and in-memory backends.
_workspace/src/gopkg.in/fsnotify.v0
Package fsnotify provides a platform-independent interface for file system notifications.
Package fsnotify provides a platform-independent interface for file system notifications.
_workspace/src/gopkg.in/tomb.v1
The tomb package offers a conventional API for clean goroutine termination.
The tomb package offers a conventional API for clean goroutine termination.
pkg
accounting
Package accounting provides helper functions for parsing and creating Univa Grid Engine compatible accounting files.
Package accounting provides helper functions for parsing and creating Univa Grid Engine compatible accounting files.
log
Package log provides a set of simple methods for handling logging in a similar way (format) like Grid Engine.
Package log provides a set of simple methods for handling logging in a similar way (format) like Grid Engine.

Jump to

Keyboard shortcuts

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