config

package
v0.0.0-...-d485828 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHCPConfig

type DHCPConfig struct {
	ServerUUID          string `yaml:"server_uuid"`
	ReservationDuration string `yaml:"reservation_duration"`
	LeaseDuration       string `yaml:"lease_duration"`
	T1Duration          string `yaml:"t1_duration"`
	T2Duration          string `yaml:"t2_duration"`
	DefaultOptions      struct {
		NextServer        string   `yaml:"next_server"`
		BootFileName      string   `yaml:"bootfile_name"`
		DomainName        string   `yaml:"domain_name"`
		DomainNameServers []string `yaml:"dns_servers"`
		NTPServers        []string `yaml:"ntp_servers"`
		Routers           []string `yaml:"routers"`
	} `yaml:"default_options"`
}

func (DHCPConfig) ServerDUID

func (d DHCPConfig) ServerDUID() ([]byte, error)

ServerDUID returns the server's DUID formatted according to https://tools.ietf.org/html/rfc6355#section-4

type DaemonConfig

type DaemonConfig struct {
	Daemonize bool
	Log       struct {
		Level string
		Path  string
	}
	ListenV4 map[string]V4ListenerConfig `yaml:"listen_v4"`
	ListenV6 map[string]V6ListenerConfig `yaml:"listen_v6"`
}

type V4ListenerConfig

type V4ListenerConfig struct {
	ReplyFrom     string `yaml:"reply_from"`
	ReplyHostname string `yaml:"reply_hostname"`
}

func (*V4ListenerConfig) ReplyFromAddress

func (v *V4ListenerConfig) ReplyFromAddress() net.IP

type V6ListenerConfig

type V6ListenerConfig struct {
	AdvertiseUnicast bool     `yaml:"advertise_unicast"`
	ListenTo         []string `yaml:"listen_to"`
	ReplyFrom        string   `yaml:"reply_from"`
}

func (*V6ListenerConfig) ListenToAddresses

func (v *V6ListenerConfig) ListenToAddresses() []net.IP

func (*V6ListenerConfig) ReplyFromAddress

func (v *V6ListenerConfig) ReplyFromAddress() net.IP

Jump to

Keyboard shortcuts

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