Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertStringsToMachines ¶ added in v0.3.17
func ConvertStringsToMachines(names []string) []drmaa2interface.Machine
ConvertStringsToMachines converts machine names into drmaa2 machines in which only the name is set.
func JobInfoIsUnset ¶ added in v0.3.16
func JobInfoIsUnset(ji drmaa2interface.JobInfo) bool
JobInfoIsUnset returns true when the job info struct does not filter any jobs, i.e. all fields are set to the specified unset value. Un Unset JobInfo struct is returned by drmaa2interface.CreateJobInfo().
func JobInfoMatches ¶
func JobInfoMatches(ji drmaa2interface.JobInfo, filter drmaa2interface.JobInfo) bool
JobInfoMatches returns true when the given job info is allowed by the filter.
Types ¶
type StringFilter ¶ added in v0.3.16
type StringFilter struct {
// contains filtered or unexported fields
}
StringFilter implements a lookup method for strings
func NewStringFilter ¶ added in v0.3.16
func NewStringFilter(values []string) *StringFilter
NewStringFilter creates a hashmap for efficiently looking up if a value is included in the map or return a subset of a given filter.
func (*StringFilter) GetIncludedSubset ¶ added in v0.3.17
func (sf *StringFilter) GetIncludedSubset(filter []string) []string
func (*StringFilter) IsIncluded ¶ added in v0.3.16
func (sf *StringFilter) IsIncluded(filter string) bool
IsIncluded returns true when the item is found in the filter list.
Click to show internal directories.
Click to hide internal directories.