dhcp

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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