dhcpd

package
v0.39.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHCPSubnets

type DHCPSubnets struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type Event

type Event struct {
	Type   EventType
	Subnet *dhcpapi.DHCPSubnet
}

type EventType

type EventType string
const (
	EventTypeAdded    EventType = "ADDED"
	EventTypeModified EventType = "MODIFIED"
	EventTypeDeleted  EventType = "DELETED"
)

type IPv4Allocator

type IPv4Allocator interface {
	AllocateIP(hint net.IPNet) (net.IPNet, error)
	Allocate() (net.IPNet, error)
	Free(net.IPNet) error
	GatewayIP() net.IP
}

type ManagedSubnet

type ManagedSubnet struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type Service

type Service struct {
	Verbose bool
	Config  string
	// contains filtered or unexported fields
}

func (*Service) Run

func (d *Service) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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