scheduler

scheduler.chaos

class scheduler.chaos.ChaosSchedulerClient(target, auth, options, pkey)[source]
create(name, image, command, **kwargs)[source]

Create a new container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

stop(name)[source]

Stop a container.

scheduler.chaos.SchedulerClient

alias of ChaosSchedulerClient

scheduler.fleet

class scheduler.fleet.FleetHTTPClient(target, auth, options, pkey)[source]
create(name, image, command='', template=None, **kwargs)[source]

Create a container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

state(name)[source]

Display the given job’s running state.

stop(name)[source]

Stop a container.

scheduler.fleet.SchedulerClient

alias of FleetHTTPClient

class scheduler.fleet.UHTTPConnection(path)[source]

Subclass of Python library HTTPConnection that uses a Unix domain socket.

connect()[source]

scheduler.mock

class scheduler.mock.MockSchedulerClient(target, auth, options, pkey)[source]
create(name, image, command, **kwargs)[source]

Create a new container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

state(name)[source]

Display the given job’s running state.

stop(name)[source]

Stop a container.

scheduler.mock.SchedulerClient

alias of MockSchedulerClient

scheduler.states

class scheduler.states.JobState[source]
exception scheduler.states.TransitionError(prev, next, msg)[source]

Raised when a transition from one state to another is illegal

scheduler.swarm

scheduler.swarm.SchedulerClient

alias of SwarmClient

class scheduler.swarm.SwarmClient(target, auth, options, pkey)[source]
create(name, image, command='', template=None, **kwargs)[source]

Create a new container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

state(name)[source]

Display the given job’s running state.

stop(name)[source]

Stop a container.