Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaseGetter ¶ added in v2.17.0
type LeaseGetter interface {
GetDHCPLeases() ([]dhcp.NetworkDHCPLease, error)
}
LeaseGetter is an interface for getting DHCP leases.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server that provides QEMU metadata.
func New ¶
func New(log *slog.Logger, network, initSecretHash string, getter LeaseGetter) *Server
New creates a new Server.
func (*Server) ListenAndServe ¶
ListenAndServe on a given port.
Click to show internal directories.
Click to hide internal directories.