conf

package
v0.0.0-...-a7fb08b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0 Imports: 1 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 {
	DNS        DNS                  `json:"dns"`
	V4Networks map[string]V4Network `json:"v4networks"`
	Machines   map[string]Machine   `json:"machines"`
}

func Load

func Load(data []byte) (*Config, error)

type DNS

type DNS struct {
	Listen    string   `json:"listen"`
	Networks  []string `json:"networks"`
	LocalTTL  int      `json:"local-ttl"`
	GlobalTTL int      `json:"global-ttl"`
}

type Interface

type Interface struct {
	HardwareAddr string `json:"hardware-address"`
	IPv4Addr     string `json:"ipv4-address"`
	Fqdn         string `json:"fqdn,omitempty"` /* (ex) zoi.eaglejump.jp. */
}

type Machine

type Machine []Interface

type V4Network

type V4Network struct {
	InterfaceName     string   `json:"interface"`
	Network           string   `json:"network"`
	DHCP4Listen       string   `json:"dhcp4-listen"`
	LeaseDurationDays float64  `json:"lease-duration-days"`
	NameServerAddrs   []string `json:"nameserver-address,omitempty"`
	GatewayAddr       string   `json:"gateway-address,omitempty"`
}

Jump to

Keyboard shortcuts

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