MCPcopy
hub / github.com/lxc/incus / Transaction

Struct Transaction

internal/server/dnsmasq/dhcpalloc/dhcpalloc.go:100–109  ·  view source on GitHub ↗

Transaction is a locked transaction of the dnsmasq config files that allows IP allocations for a host.

Source from the content-addressed store, hash-verified

98
99// Transaction is a locked transaction of the dnsmasq config files that allows IP allocations for a host.
100type Transaction struct {
101 opts *Options
102 currentDHCPMAC net.HardwareAddr
103 currentDHCPv4 dnsmasq.DHCPAllocation
104 currentDHCPv6 dnsmasq.DHCPAllocation
105 allocationsDHCPv4 map[[4]byte]dnsmasq.DHCPAllocation
106 allocationsDHCPv6 map[[16]byte]dnsmasq.DHCPAllocation
107 allocatedIPv4 net.IP
108 allocatedIPv6 net.IP
109}
110
111// AllocateIPv4 allocate an IPv4 static DHCP allocation.
112func (t *Transaction) AllocateIPv4() (net.IP, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected