mirror of https://github.com/jetkvm/kvm.git
add missing dhcp client methods
This commit is contained in:
parent
50469c1fb6
commit
3c83bcfe69
|
|
@ -0,0 +1,15 @@
|
|||
package types
|
||||
|
||||
// DHCPClient is the interface for a DHCP client.
|
||||
type DHCPClient interface {
|
||||
Domain() string
|
||||
Lease4() *DHCPLease
|
||||
Lease6() *DHCPLease
|
||||
Renew() error
|
||||
Release() error
|
||||
SetIPv4(enabled bool)
|
||||
SetIPv6(enabled bool)
|
||||
SetOnLeaseChange(callback func(lease *DHCPLease))
|
||||
Start() error
|
||||
Stop() error
|
||||
}
|
||||
Loading…
Reference in New Issue