Documentation
¶
Overview ¶
This package provides functions to interact with the Exoscale metadata server and retrieve user-data (Cloudinit or Ignition data).
Index ¶
Constants ¶
View Source
const ( URL = "http://metadata.exoscale.com/latest/" MetaDataURL = URL + "meta-data" UserDataURL = URL + "user-data" CdRomPath = "/dev/disk/by-label/cidata" )
Variables ¶
This section is empty.
Functions ¶
func FromCdRom ¶
FromCdRom retrieves metadata for Exoscale Private Instance, from the attached CD-ROM(iso9660) device file system. Important note: Run this code as privileged user. Not Windows compatible.
Types ¶
type Endpoint ¶
type Endpoint string
Endpoint represents different types of metadata available on the Exoscale server.
const ( AvailabilityZone Endpoint = "availability-zone" CloudIdentifier Endpoint = "cloud-identifier" InstanceID Endpoint = "instance-id" LocalHostname Endpoint = "local-hostname" LocalIpv4 Endpoint = "local-ipv4" PublicHostname Endpoint = "public-hostname" PublicIpv4 Endpoint = "public-ipv4" ServiceOffering Endpoint = "service-offering" VMID Endpoint = "vm-id" )
These constants define the various types of Exoscale metadata you can retrieve. Use the Get function to access specific metadata.
Click to show internal directories.
Click to hide internal directories.