handler

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package handler holds the interface that backends implement, handlers take in, and the top level dhcp package passes to handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendReader

type BackendReader interface {
	// Read data (from a backend) based on a mac address
	// and return DHCP headers and options, including netboot info.
	GetByMac(context.Context, net.HardwareAddr) (*data.DHCP, *data.Netboot, error)
	GetByIP(context.Context, net.IP) (*data.DHCP, *data.Netboot, error)
	RegisterHw(context.Context, v1alpha1.Hardware) error
}

BackendReader is the interface for getting data from a backend.

Backends implement this interface to provide DHCP and Netboot data to the handlers.

Directories

Path Synopsis
Package noop is a handler that does nothing.
Package noop is a handler that does nothing.
Package reservation is the handler for responding to DHCPv4 messages with only host reservations.
Package reservation is the handler for responding to DHCPv4 messages with only host reservations.

Jump to

Keyboard shortcuts

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