sysd

package
v0.0.0-...-28ebc5c Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetDHCP

type NetDHCP string

NetDHCP describes valid modes for configuring a network.

const (
	NetDHCPDual NetDHCP = "yes"
	NetDHCPv4   NetDHCP = "ipv4"
	NetDHCPv6   NetDHCP = "ipv6"
)

Valid NetDHCP values.

type NetDevMatch

type NetDevMatch struct {
	Name string `toml:"name"`
	MAC  string `toml:"mac_address"`
	Path string `toml:"path"`
	Type string `toml:"type"`
	SSID string `toml:"ssid"`
	Host string `toml:"host"`
}

NetDevMatch enumerates constraints which determine if the configuration in the file should be applied to a given device. If multiple configuration files would match, only the first (lexically) is applied.

func (*NetDevMatch) IsEmpty

func (m *NetDevMatch) IsEmpty() bool

func (*NetDevMatch) String

func (m *NetDevMatch) String() string

String returns the structure serialized as configuration.

type NetLink struct {
	MAC               string
	MTU               uint
	Unmanaged         bool
	RequiredForOnline bool
}

NetLink describes configuration to apply to a network link when the configuration matches a network device.

func (*NetLink) IsEmpty

func (n *NetLink) IsEmpty() bool

func (*NetLink) String

func (n *NetLink) String() string

String returns the structure serialized as configuration.

type NetSettings

type NetSettings struct {
	DHCP           NetDHCP
	IsDefaultRoute bool
	Address        net.IPNet
	Gateway        net.IP
	DNS            []string
}

NetSettings describes configuration to apply to a network.

func (*NetSettings) String

func (n *NetSettings) String() string

String returns the structure serialized as configuration.

type Network

type Network struct {
	Match NetDevMatch
	Link  NetLink
	Net   NetSettings
}

Network describes configuration for a systemd-networkd.

func (*Network) String

func (n *Network) String() string

String returns the structure serialized as configuration.

Jump to

Keyboard shortcuts

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