Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2020 Changes in this version + func PathExists(path string) (bool, error) + type DHCPService struct + EnableIPXE bool + IPRangeEnd net.IP + IPRangeStart net.IP + IPXEBootScript string + LeaseDuration time.Duration + PXEBootImage string + ServiceIP net.IP + TFTPServerName string + func (s *DHCPService) ServeDHCP(request dhcp.Packet, msgType dhcp.MessageType, requestOptions dhcp.Options) (response dhcp.Packet) + type RecordLease struct + Expires time.Time + IPAddress net.IP + MACAddress string + func (r *RecordLease) IsExpired() bool + type Service struct + DHCPPort string + DNSServer string + DocRoot string + EnableIPXE bool + HTTPPort string + HTTPRoot string + IPRangeEnd string + IPRangeStart string + IPXEBootScript string + ListenIP string + NetMask string + PXEBootImage string + Router string + ServiceIP string + TFTPPort string + TFTPRoot string + TFTPServerName string + func NewService() *Service + func (s *Service) Initialize(path string) error + func (s *Service) LoadAndRenderTemplates() (err error) + func (s *Service) Prepare() error + func (s *Service) Shutdown() + func (s *Service) Start() error