All checks were successful
Release Pipeline / set-release-target (push) Successful in 1s
Release Pipeline / upload-assets (agent.service, systemd/agent.service) (push) Successful in 3s
Release Pipeline / upload-assets (dnsmasq@.service, systemd/dnsmasq@.service) (push) Successful in 3s
Release Pipeline / upload-assets (metadata@.service, systemd/metadata@.service) (push) Successful in 3s
Release Pipeline / upload-assets (run-dnsmasq-in-netns.sh, scripts/run-dnsmasq-in-netns.sh) (push) Successful in 3s
Release Pipeline / build (agent, amd64, linux) (push) Successful in 0s
Release Pipeline / build (metadata, amd64, linux) (push) Successful in 0s
Release Pipeline / release (push) Successful in 11s
Release Pipeline / publish (push) Successful in 0s
Release Pipeline / build (push) Successful in 1m29s
Release Pipeline / checksums (push) Successful in 4s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
31 lines
668 B
Go
31 lines
668 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/iptables, 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
|
|
Documents map[string]string
|
|
}
|