Documentation ¶
Index ¶
- type DhcpServer
- func (s *DhcpServer) AddLease(address proto.Address, hostname string) error
- func (s *DhcpServer) AddNetbootLease(address proto.Address, hostname string, subnet *proto.Subnet) error
- func (s *DhcpServer) AddSubnet(subnet proto.Subnet)
- func (s *DhcpServer) MakeAcknowledgmentChannel(ipAddr net.IP) <-chan struct{}
- func (s *DhcpServer) MakeRequestChannel(macAddr string) <-chan net.IP
- func (s *DhcpServer) RemoveLease(ipAddr net.IP)
- func (s *DhcpServer) RemoveSubnet(subnetId string)
- func (s *DhcpServer) ServeDHCP(req dhcp.Packet, msgType dhcp.MessageType, options dhcp.Options) dhcp.Packet
- func (s *DhcpServer) SetNetworkBootImage(nbiName string) error
- func (s *DhcpServer) WriteHtml(writer io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DhcpServer ¶
type DhcpServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(interfaceNames []string, dynamicLeasesFile string, logger log.DebugLogger) (*DhcpServer, error)
func (*DhcpServer) AddLease ¶
func (s *DhcpServer) AddLease(address proto.Address, hostname string) error
func (*DhcpServer) AddNetbootLease ¶
func (*DhcpServer) AddSubnet ¶
func (s *DhcpServer) AddSubnet(subnet proto.Subnet)
func (*DhcpServer) MakeAcknowledgmentChannel ¶
func (s *DhcpServer) MakeAcknowledgmentChannel(ipAddr net.IP) <-chan struct{}
func (*DhcpServer) MakeRequestChannel ¶
func (s *DhcpServer) MakeRequestChannel(macAddr string) <-chan net.IP
func (*DhcpServer) RemoveLease ¶
func (s *DhcpServer) RemoveLease(ipAddr net.IP)
func (*DhcpServer) RemoveSubnet ¶
func (s *DhcpServer) RemoveSubnet(subnetId string)
func (*DhcpServer) ServeDHCP ¶
func (s *DhcpServer) ServeDHCP(req dhcp.Packet, msgType dhcp.MessageType, options dhcp.Options) dhcp.Packet
func (*DhcpServer) SetNetworkBootImage ¶
func (s *DhcpServer) SetNetworkBootImage(nbiName string) error
func (*DhcpServer) WriteHtml ¶
func (s *DhcpServer) WriteHtml(writer io.Writer)
Click to show internal directories.
Click to hide internal directories.