Documentation
¶
Overview ¶
Package runner does the work. It takes jobs from its inbox, runs each one's script in a process of its own with the permissions the job was given, and sends back the result.
Index ¶
Constants ¶
const JobArg = role.Arg
JobArg is the argument that makes the binary run one job, as the process a runner starts for it.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner struct {
ID *identity.Identity
Serves []Served
// Trusted, if set, reads afresh at each pass which controllers the
// runner serves and under what ceiling, from where its trust is kept:
// a ceiling set again, or a controller removed, holds from the next
// job.
Trusted func() ([]Served, error)
// Jobs is how many jobs are run at once.
Jobs int
// Command starts a job's process; by default, this binary.
Command []string
// Wrapper is the exec wrapper: a command put in front of every program
// a job starts.
Wrapper []string
// Scratch is where jobs' scratch directories are made.
Scratch string
// Now is the runner's clock.
Now func() time.Time
// contains filtered or unexported fields
}
A Runner serves the controllers it trusts, each in that controller's store and under the ceiling it gave that controller.