Versions in this module Expand all Collapse all v0 v0.1.0 Oct 6, 2026 Changes in this version type StaticConfig — linux/amd64 + FlushAddresses bool v0.0.1 Sep 3, 2026 Changes in this version + type AddressFamily uint8 — linux/amd64 + const FamilyIPv4 + const FamilyIPv6 + type Client struct — linux/amd64 + func New() (*Client, error) + func (c *Client) Close() error + func (c *Client) Configure(ctx context.Context, cfg Config) (*Lease, error) + func (c *Client) Netlink() *netlink.Handle + func (c *Client) SetDown(name string) error + func (c *Client) SetUp(name string) error + func (c *Client) StopDHCP(name string) error + type Config struct — linux/amd64 + DHCP DHCPConfig + Interface string + Mode Mode + Static StaticConfig + type DHCPConfig struct — linux/amd64 + DNSPath string + Family AddressFamily + Metric int + RATimeout time.Duration + Retries int + Timeout time.Duration + WriteDNS bool + type Lease struct — linux/amd64 + Address *net.IPNet + DNS []net.IP + Family AddressFamily + Gateway net.IP + LeaseTime time.Duration + RebindingTime time.Duration + RenewalTime time.Duration + Server net.IP + type Mode uint8 — linux/amd64 + const ModeDHCP + const ModeStatic + type StaticConfig struct — linux/amd64 + Address *net.IPNet + Gateway net.IP + Metric int