rpcd

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(manager *manager.Manager, dhcpServer DhcpServer,
	tftpbootServer TftpbootServer, logger log.DebugLogger) (
	*htmlWriter, error)

Types

type DhcpServer

type DhcpServer interface {
	AddLease(address proto.Address, hostname string) error
	AddNetbootLease(address proto.Address, hostname string,
		subnet *proto.Subnet) error
	ClosePacketWatchChannel(channel <-chan proto.WatchDhcpResponse)
	MakeAcknowledgmentChannel(ipAddr net.IP) <-chan struct{}
	MakePacketWatchChannel() <-chan proto.WatchDhcpResponse
	RemoveLease(ipAddr net.IP)
}

type TftpbootServer

type TftpbootServer interface {
	RegisterFiles(ipAddr net.IP, files map[string][]byte)
	UnregisterFiles(ipAddr net.IP)
}

Jump to

Keyboard shortcuts

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