Documentation
¶
Overview ¶
Package linux holds Linux host setup: the systemd job slice and read-only checks of the Docker daemon configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerDefaultCgroupParent ¶
DockerDefaultCgroupParent is Host{}.DockerDefaultCgroupParent on the real host.
func EnsureSlice ¶
EnsureSlice is Host{}.EnsureSlice on the real host.
Types ¶
type Host ¶
type Host struct {
Root string // filesystem root prefix; "" = "/" (tests inject a temp dir)
// Run executes a command; nil runs it for real. Tests inject a recorder.
Run func(ctx context.Context, name string, args ...string) error
}
Host is the Linux host the setup acts on. The zero value is the real host.
func (Host) DockerDefaultCgroupParent ¶
DockerDefaultCgroupParent reads "cgroup-parent" from /etc/docker/daemon.json. Report only: setup shows it, never edits it. A missing file or key yields "".