install

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 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

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

func Run

func Run(o Options, h Host, out io.Writer) (missing []string, err error)

Run checks the host, writes the files and returns what is missing. It prints a line for each step to out.

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
	// GitVersion returns the output of git --version.
	GitVersion func() (string, error)
}

Host is what Run asks the machine. A test replaces it.

func SystemHost

func SystemHost() Host

SystemHost reads the real machine.

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
	CheckoutDir 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.

Jump to

Keyboard shortcuts

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