Documentation
¶
Overview ¶
Package install prepares a Linux host to run `ward runner` in pull mode. It checks what the host must provide, writes a systemd unit and an environment file, and reports what is missing. It knows no cloud provider: it reads only the host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct {
LookPath func(name string) (string, error)
KVM func(user string) error
FSType func(path string) (string, error)
LookupUser func(name string) (uid, gid int, err error)
HasSystemd func() bool
}
Host is what Run asks the machine. A test replaces it.
type Options ¶
type Options struct {
WardURL string
Kid string
KeyFile string
MotteURL string
GrantFile string
Image string
Engine string
Sandbox string
CacheDir string
WorkDir string
User string
Concurrency int
// Binary is the path of the ward binary that the unit runs.
Binary string
// Root is a prefix for every file that Run writes. The default is "/".
Root string
}
Options say how the runner is set up. WardURL, Kid, MotteURL, GrantFile and Image are required.