Documentation ¶
Index ¶
Constants ¶
View Source
const ( DNSmasqExec = "/usr/sbin/dnsmasq" DHCPPidFile = "/tmp/dhcp.pid" )
Variables ¶
View Source
var DHCPHostsFile = "/var/run/kubevirt/dhcp.hosts"
View Source
var DHCPLeaseFile = "/var/run/kubevirt/dhcp.leases"
View Source
var DhcpSocket string
Functions ¶
Types ¶
type DNSmasqInstance ¶
type DNSmasqInstance struct {
// contains filtered or unexported fields
}
func NewDNSmasq ¶
func NewDNSmasq() *DNSmasqInstance
func (*DNSmasqInstance) AddHost ¶
func (dnsmasq *DNSmasqInstance) AddHost(mac string, ipaddr string, lease int) error
func (*DNSmasqInstance) RemoveHost ¶
func (dnsmasq *DNSmasqInstance) RemoveHost(ipaddr string) error
func (*DNSmasqInstance) Restart ¶
func (dnsmasq *DNSmasqInstance) Restart() error
func (*DNSmasqInstance) SetKnownHosts ¶
func (dnsmasq *DNSmasqInstance) SetKnownHosts(hostsList *[]AddArgs) error
type Monitor ¶
func NewMonitor ¶
func NewMonitor() Monitor
type MonitorRuntime ¶
type MonitorRuntime struct {
// contains filtered or unexported fields
}
func (*MonitorRuntime) Start ¶
func (runtime *MonitorRuntime) Start(cmd string, args []string)
func (*MonitorRuntime) Stop ¶
func (runtime *MonitorRuntime) Stop()
type RemoveArgs ¶
type VirtDHCPClient ¶
type VirtDHCPClient struct {
// contains filtered or unexported fields
}
func GetClient ¶
func GetClient() (*VirtDHCPClient, error)
Click to show internal directories.
Click to hide internal directories.