zones: introduce Machine.PublicAddresses()

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-21 22:16:39 +00:00
parent 5f924dcb00
commit 7e6c53c5f5
3 changed files with 33 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
package zones
import (
"net/netip"
"strconv"
"strings"
"sync"
@@ -13,6 +14,8 @@ type Machine struct {
zone *Zone
id int
Name string
PublicAddresses []netip.Addr
}
func (m *Machine) String() string {