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 ¶
UserList is a Univa Grid Engine access control list or Department.
func GetUserLists ¶
GetUserLists calls qconf -su <listOfUl> and parses the output into UserList structs.
func ParseUserList ¶
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. |