config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Nameservers   []net.IP
	MatchDomains  []string
	SearchDomains []string
	SplitDNS      bool
	Remove        bool
}

type Manager

type Manager interface {
	Configure(iface string, config Config) error
}

func NewManager

func NewManager(opts ...ManagerOption) (Manager, error)

type ManagerOption

type ManagerOption func(*ManagerOptions)

func CleanupResidualInterfaceConfigs

func CleanupResidualInterfaceConfigs(interfaces ...string) ManagerOption

type ManagerOptions

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

Jump to

Keyboard shortcuts

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