dns

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(driver drivers.Driver) (bool, error)

func Status

func Status(driver drivers.Driver) bool

func Stop

func Stop(driver drivers.Driver) (bool, error)

Types

type DnsmasqConfiguration

type DnsmasqConfiguration struct {
	Port                string // 2053 (see Dockerfile)
	ResolveFilename     string // /var/lib/minishift/resolv.dnsmasq.conf
	AdditionalHostsPath string // /dnsmasq.hosts
	Domain              string // localhost.localdomain
	RoutingDomain       string // {{.LocalIP}}.{{.RoutingSuffix}}
	LocalIP             string
}

type DockerDnsService

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

func (DockerDnsService) Restart

func (s DockerDnsService) Restart() (bool, error)

func (DockerDnsService) Start

func (s DockerDnsService) Start() (bool, error)

func (DockerDnsService) Status

func (s DockerDnsService) Status() bool

isComtainerRunning checks whether the dnsmasq container is in running state.

func (DockerDnsService) Stop

func (s DockerDnsService) Stop() (bool, error)

type SystemdDnsService

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

func (SystemdDnsService) Restart

func (s SystemdDnsService) Restart() (bool, error)

func (SystemdDnsService) Start

func (s SystemdDnsService) Start() (bool, error)

func (SystemdDnsService) Status

func (s SystemdDnsService) Status() bool

isServiceRunning checks whether the dnsmasq service is running

func (SystemdDnsService) Stop

func (s SystemdDnsService) Stop() (bool, error)

Jump to

Keyboard shortcuts

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