Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DHCPService ¶
type DHCPService struct { //Config Config ServiceIP net.IP IPRangeStart net.IP // dhcp ip range start IPRangeEnd net.IP // dhcp ip range end LeaseDuration time.Duration TFTPServerName string PXEBootImage string // PXE boot file (TFTP) IPXEBootScript string // iPXE boot script (HTTP) EnableIPXE bool // contains filtered or unexported fields }
A DHCPService represents the state for the All service.
type RecordLease ¶
type RecordLease struct { // The MAC address of the machine to which the lease belongs. MACAddress string // The leased IPv4 address. IPAddress net.IP // The date and time when the lease expires. Expires time.Time }
RecordLease represents a DHCP address and lease.
func (*RecordLease) IsExpired ¶
func (r *RecordLease) IsExpired() bool
IsExpired determines whether the lease has expired.
type Service ¶
type Service struct { //Config Config ServiceIP string DocRoot string ListenIP string HTTPPort string // http listen port default 80 HTTPRoot string // http document root default netboot TFTPPort string // tftp listen port default 69 TFTPRoot string // tftp document root default netboot DHCPPort string // dhcp listen port default 67 IPRangeStart string // dhcp ip range start IPRangeEnd string // dhcp ip range end NetMask string // dhcp netmask default 255.255.255.0 Router string DNSServer string TFTPServerName string PXEBootImage string // PXE boot file (TFTP) IPXEBootScript string // iPXE boot script (HTTP) EnableIPXE bool // contains filtered or unexported fields }
A Service represents the state for the All service.
func (*Service) Initialize ¶
Initialize the service configuration.
func (*Service) LoadAndRenderTemplates ¶
LoadAndRenderTemplates load tmpl from templates folder
Click to show internal directories.
Click to hide internal directories.