service

package
v0.0.0-...-e749f68 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHCPv4Server

type DHCPv4Server struct {
	Interface        string          `json:"interface"`
	Pool             []string        `json:"pool"`
	DefaultLeaseTime common.Duration `json:"default_lease_time"`
	MaxLeaseTime     common.Duration `json:"max_lease_time"`

	GatewayMode   Mode      `json:"gateway_mode"`
	Gateway       *string   `json:"gateway,omitempty"`
	DNSServerMode Mode      `json:"dns_server_mode"`
	DNSServers    *[]string `json:"dns_servers,omitempty"`
	NTPServerMode Mode      `json:"ntp_server_mode"`
	NTPServers    *[]string `json:"ntp_servers,omitempty"`

	Reservations map[string]Reservation `json:"reservations"`

	Comment string `json:"comment,omitempty"`
}

type DHCPv6Server

type DHCPv6Server struct {
	Interface        string          `json:"interface"`
	Pool             []string        `json:"pool"`
	DefaultLeaseTime common.Duration `json:"default_lease_time"`
	MaxLeaseTime     common.Duration `json:"max_lease_time"`

	GatewayMode   Mode      `json:"gateway_mode"`
	Gateway       *string   `json:"gateway,omitempty"`
	DNSServerMode Mode      `json:"dns_server_mode"`
	DNSServers    *[]string `json:"dns_servers,omitempty"`
	NTPServerMode Mode      `json:"ntp_server_mode"`
	NTPServers    *[]string `json:"ntp_servers,omitempty"`

	Reservations map[string]Reservation `json:"reservations"`

	Comment string `json:"comment,omitempty"`
}

type DNSServer

type DNSServer struct {
	Interface string `json:"interface"`
	Comment   string `json:"comment,omitempty"`
}

type Mode

type Mode int
const (
	None Mode = iota
	Interface
	Specify
)

func (*Mode) FromString

func (t *Mode) FromString(input string) Mode

func (Mode) MarshalJSON

func (t Mode) MarshalJSON() ([]byte, error)

func (Mode) String

func (t Mode) String() string

func (*Mode) UnmarshalJSON

func (t *Mode) UnmarshalJSON(b []byte) error

type NTPServer

type NTPServer struct {
	Interface string `json:"interface"`
	Comment   string `json:"comment,omitempty"`
}

type Reservation

type Reservation struct {
	HardwareAddress common.HardwareAddress
	IPAddress       netip.Addr
}

type Service

type Service struct {
	DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers"`
	DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers"`
	DNSServers    []DNSServer    `json:"dns_servers"`
	NTPServers    []NTPServer    `json:"ntp_servers"`
}

Jump to

Keyboard shortcuts

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