dbus

package
v2.3.6-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolveD

type ResolveD struct {
	*dbus.Conn
}

A ResolveD is a `dbus.Conn` with methods to communicate with the ResolveD daemon.

func NewResolveD

func NewResolveD() (*ResolveD, error)

func (*ResolveD) IsRunning

func (conn *ResolveD) IsRunning() bool
func (conn *ResolveD) RevertLink(networkIndex int) error

func (*ResolveD) SetLinkDNS

func (conn *ResolveD) SetLinkDNS(networkIndex int, ips ...net.IP) error

func (*ResolveD) SetLinkDomains

func (conn *ResolveD) SetLinkDomains(networkIndex int, domains ...string) error

Jump to

Keyboard shortcuts

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