dhcp

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientService

type ClientService struct {
	Name      string
	Iface     string
	Namespace string
	// contains filtered or unexported fields
}

func NewService

func NewService(iface string, namespace string, z *zinit.Client) ClientService

func (ClientService) Create

func (s ClientService) Create() error

func (ClientService) Destroy

func (s ClientService) Destroy() error

func (ClientService) DestroyOlderService

func (s ClientService) DestroyOlderService() error

func (ClientService) IsUsingOlderClient

func (s ClientService) IsUsingOlderClient() bool

func (ClientService) Start

func (s ClientService) Start() error

func (ClientService) Stop

func (s ClientService) Stop() error

type ProbeOutput

type ProbeOutput struct {
	Subnet        string `json:"subnet"`
	Router        string `json:"router"`
	IP            string `json:"ip"`
	SourceAddress string `json:"siaddr"`
	DNS           string `json:"dns"`
	ServerID      string `json:"serverid"`
	BroadcastIP   string `json:"broadcast"`
	Lease         string `json:"lease"`
}

func Probe

func Probe(ctx context.Context, inf string) (output ProbeOutput, err error)

func (*ProbeOutput) IPNet

func (p *ProbeOutput) IPNet() (*net.IPNet, error)

Jump to

Keyboard shortcuts

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