dnsmasq

package
v0.0.0-...-13e1c1b Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package dnsmasq manages the process lifecycle of the dnsmasq(8) DHCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	// contains filtered or unexported fields
}

Process is a handle for a dnsmasq(8) process.

func Run

func Run(t *testing.T, iface, ns string) *Process

Run starts a dnsmasq(8) process and returns a handle to it.

func (*Process) Actions

func (p *Process) Actions() []string

Actions returns a string slice of dnsmasq(8) actions (as per its stderr log) received up until now. Use Kill before calling Actions to force a log flush.

func (*Process) Kill

func (p *Process) Kill()

Kill shuts down the dnsmasq(8) process and returns once waitpid returns.

Jump to

Keyboard shortcuts

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