client

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertJobInfoToDRMAA2

func ConvertJobInfoToDRMAA2(in genclient.JobInfo) drmaa2interface.JobInfo

func ConvertJobStateToDRMAA2

func ConvertJobStateToDRMAA2(in string) drmaa2interface.JobState

func NewAllocator

func NewAllocator() *allocator

func ToStringArray

func ToStringArray(in []*string) []string

Types

type ClientJobTracker

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

func New

func New(jobSessionName string, params ClientTrackerParams) (*ClientJobTracker, error)

New creates a new remote client job tracker.

func (*ClientJobTracker) AddArrayJob

func (c *ClientJobTracker) AddArrayJob(jt drmaa2interface.JobTemplate, begin int, end int, step int, maxParallel int) (string, error)

func (*ClientJobTracker) AddJob

func (c *ClientJobTracker) AddJob(template drmaa2interface.JobTemplate) (string, error)

func (*ClientJobTracker) DeleteJob

func (c *ClientJobTracker) DeleteJob(jobid string) error

DeleteJob removes a finished job from remote.

func (*ClientJobTracker) JobControl

func (c *ClientJobTracker) JobControl(jobid, action string) error

func (*ClientJobTracker) JobInfo

func (c *ClientJobTracker) JobInfo(jobid string) (drmaa2interface.JobInfo, error)

func (*ClientJobTracker) JobState

func (*ClientJobTracker) ListArrayJobs

func (c *ClientJobTracker) ListArrayJobs(arrayjobid string) ([]string, error)

func (*ClientJobTracker) ListJobCategories

func (c *ClientJobTracker) ListJobCategories() ([]string, error)

ListJobCategories returns all job categories from remote.

func (*ClientJobTracker) ListJobs

func (c *ClientJobTracker) ListJobs() ([]string, error)

func (*ClientJobTracker) Wait

func (p *ClientJobTracker) Wait(jobid string, timeout time.Duration, states ...drmaa2interface.JobState) error

Wait until the job has a certain DRMAA2 state or return an error if the state is unreachable.

type ClientTrackerParams

type ClientTrackerParams struct {
	// Server of the remote API like "http://localhost:8087"
	Server string
	// Path sets path at server of remote jobtracker API (like "/container")
	Path string
	// Opts are additional settings for the client, like for authentication
	Opts []genclient.ClientOption
}

Directories

Path Synopsis
Package genclient provides primitives to interact with the openapi HTTP API.
Package genclient provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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