two/internal/metadata/struct.go
GnomeZworc 682696214a
f-90: vm, vpc, watchdog: redirections en nft, retrait d'iptables #90
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-10-31 14:15:07 +01:00

32 lines
683 B
Go

package metadata
// ServiceIP is the well-known address guests use to reach the metadata server.
// Traffic to it is DNATed to the subnet gateway by internal/nft, and the
// route to it is advertised by internal/dhcp.
const ServiceIP = "169.254.169.254"
type NoCloudData struct {
MetaData string
UserData string
NetworkConfig string
VendorData string
NetNs string
Iface string
Port int
}
type ServerConfig struct {
VmName string
RunDir string
}
type NoCloudConfig struct {
VpcName string
BindIP string
BindPort string
Name string
Password string
SSHKEY string
MACs []string
Documents map[string]string
}