server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	JobManager Manager
	Logger     logr.Logger
	PoolSize   int
}

func (*Handler) ServeDHCP

func (h *Handler) ServeDHCP(addr string, nextServer net.IP, ipxeBaseURL string, bootsBaseURL string)

ServeDHCP starts the DHCP server. It takes the next server address (nextServer) for serving iPXE binaries via TFTP and an IP:Port (httpServerFQDN) for serving iPXE binaries via HTTP.

type Manager

type Manager interface {
	CreateFromDHCP(context.Context, net.HardwareAddr, net.IP, string) (context.Context, *job.Job, error)
}

Manager creates jobs.

Jump to

Keyboard shortcuts

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