Documentation ¶
Index ¶
- type DockerTracker
- func (dt *DockerTracker) AddArrayJob(jt drmaa2interface.JobTemplate, begin int, end int, step int, maxParallel int) (string, error)
- func (dt *DockerTracker) AddJob(jt drmaa2interface.JobTemplate) (string, error)
- func (dt *DockerTracker) DeleteJob(jobid string) error
- func (dt *DockerTracker) JobControl(jobid, state string) error
- func (dt *DockerTracker) JobInfo(jobid string) (ji drmaa2interface.JobInfo, err error)
- func (dt *DockerTracker) JobState(jobid string) drmaa2interface.JobState
- func (dt *DockerTracker) ListArrayJobs(id string) ([]string, error)
- func (dt *DockerTracker) ListJobCategories() ([]string, error)
- func (dt *DockerTracker) ListJobs() ([]string, error)
- func (dt *DockerTracker) Wait(jobid string, timeout time.Duration, states ...drmaa2interface.JobState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerTracker ¶
type DockerTracker struct {
// contains filtered or unexported fields
}
func New ¶
func New(jobsession string) (*DockerTracker, error)
New creates a new DockerTracker. How the Docker client is configured can be influenced by (from the Docker Documentation (https://github.com/moby/moby/blob/master/client/client.go)): "Use DOCKER_HOST to set the url to the docker server.
Use DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest. Use DOCKER_CERT_PATH to load the TLS certificates from. Use DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default."
func (*DockerTracker) AddArrayJob ¶
func (dt *DockerTracker) AddArrayJob(jt drmaa2interface.JobTemplate, begin int, end int, step int, maxParallel int) (string, error)
func (*DockerTracker) AddJob ¶
func (dt *DockerTracker) AddJob(jt drmaa2interface.JobTemplate) (string, error)
func (*DockerTracker) DeleteJob ¶
func (dt *DockerTracker) DeleteJob(jobid string) error
DeleteJob removes a container so it is no longer in docker ps -a (and therefore not in the job list).
func (*DockerTracker) JobControl ¶
func (dt *DockerTracker) JobControl(jobid, state string) error
func (*DockerTracker) JobInfo ¶
func (dt *DockerTracker) JobInfo(jobid string) (ji drmaa2interface.JobInfo, err error)
func (*DockerTracker) JobState ¶
func (dt *DockerTracker) JobState(jobid string) drmaa2interface.JobState
func (*DockerTracker) ListArrayJobs ¶
func (dt *DockerTracker) ListArrayJobs(id string) ([]string, error)
func (*DockerTracker) ListJobCategories ¶
func (dt *DockerTracker) ListJobCategories() ([]string, error)
ListJobCategories lists all containers available to run commands on.
func (*DockerTracker) ListJobs ¶
func (dt *DockerTracker) ListJobs() ([]string, error)
func (*DockerTracker) Wait ¶
func (dt *DockerTracker) Wait(jobid string, timeout time.Duration, states ...drmaa2interface.JobState) error
Click to show internal directories.
Click to hide internal directories.