# Functions
AttachedDataDisksFromRelated decodes the data disks and data disk references from the set of custom resources and convers them into an array of AttachedDataDisk objects.
No description provided by the author
No description provided by the author
No description provided by the author
CloneBootDisk will clone an existing (boot) disk, so the clone may safely be modified.
CreateBootDiskXML creates the XML for the boot disk.
CreateCloudInit produces a cloud init ISO file as a data blob with a userdata and a metadata section.
CreateCloudInitDisk creates the XML for the cloud init disk.
CreateCustomResource creates a custom resource from a contract.
CreateCustomResourceFromEnv creates a custom resource from some environment.
CreateDataDisk creates a data disk or resizes an existing one if required.
CreateDataDiskSync creates a data disk or resizes an existing one if required.
CreateDataDiskXML creates the XML for the data disk.
createInstanceHash computes a hash value for the instance options.
CreateInstanceSync (synchronously) creates an instance.
CreateLivirtClient creates a libvirt connection based on an SSH config.
CreateLivirtClientFromEnvMap constructs the libvirt client from an env map.
CreateLoggingVolume creates a logging volume for the console log.
constructs a hash value for the string and produces a mac address from that.
CreateMacAddressFromMaybeUUID tries to parse the UUID from a string, then generate a MAC address from it if the string could not be decoded, create a MAC from a hash instead.
CreateMacAddressFromUUID creates a mac address from the first 6 bytes of the UUID.
CreateMachineIdFromHash creates a hash of the input and then a machine ID.
CreateMachineIdFromMaybeUUID tries to parse the UUID from a string, then generate a machine ID from it if the string could not be decoded, create a machine ID from a hash instead.
CreateMachineIdFromUUID creates a machineID from a UUID.
CreateNetworksXML creates the XML for the networks.
CreateSSHDialer produces a dialer that can connect to the given SSH config.
DataDiskRefsFromRelated decodes the set of configured data disks from the related data structure.
DataDisksFromRelated decodes the set of configured data disks from the related data structure.
DeleteDataDiskSync (synchronously) deletes a data disk.
No description provided by the author
DeleteInstanceSync (synchronously) deletes an instance.
No description provided by the author
No description provided by the author
GetDataDiskRef tests if a data disk has a valid configuration.
GetDCHPLeases returns the DCHP leases for a given network.
No description provided by the author
GetEnvMapFromSSHConfig serializes an SSH config into a string map.
GetLoggingVolume retrieves the value of the logging volume the HPCR console log is very small by design, so passing it as a string does make sense.
No description provided by the author
GetLoggingVolumeViaSSH retrieves the value of the logging volume by spawning a separate command.
GetLoggingVolumeViaSSH retrieves the value of the logging volume via a new and direct SSH connection the HPCR console log is very small by design, so passing it as a string does make sense.
GetNetworkRef tries to return a network ref.
GetNetwork returns the network attached to the instane.
GetSSHConfigFromConfigMap deserializes an SSH config from a config map object.
GetSSHConfigFromEnvMap deserializes an SSH config from a set of (env) parameters.
GetSSHConfigPath returns the path to the SSH config file.
No description provided by the author
IsDataDiskValid tests if a data disk has a valid configuration.
IsInstanceValid tests if an instance has a valid configuration.
IsNetworkDhcpLeaseForHostname checks if this lease is for the hostname.
LoadSSHConfig loads the SSH config file.
NetworkRefsFromRelated decodes the set of configured networks from the related data structure.
PartitionLogs partitions the original logs into success and error logs.
RemoveCloudInit removes the cloud init data from the storage pool.
RemoveDataDisk removes the data disk.
No description provided by the author
UploadBootDisk uploads the iso file to the remote storage pool.
UploadCloudInit uploads the iso file to the remote storage pool.
VSIFailedToStart tests if the VSI failed to start.
VSIStartedSuccessfully tests if the VSI started successfully.
XMLMarshall marshals an object to XML.
# Constants
No description provided by the author
No description provided by the author
default name for the network to attach to.
No description provided by the author
Environment variable names.
No description provided by the author
KeyOnPremConfig is the key into the environment to read the name of the ssh config.
No description provided by the author
No description provided by the author
KeyStoragePool is the key into the environment to read the name of the target storage pool.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DataDiskCustomResourcesToAttachedDataDisks converts from an array of DataDiskCustomResource to an array of attached disks.
DataDiskRefCustomResourcesToAttachedDataDisks converts from an array of DataDiskCustomResource to an array of attached disks.
full identifier of the disk config entry.
full identifier of the disk ref config entry.
full identifier of the disk ref config entry.
NetworkRefCustomResourceToNetworks converts from an array of NetworkRefCustomResource to an array of attached disks.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author