Documentation ¶
Index ¶
- Constants
- func AzureInstanceToParamsInstance(vm armcompute.VirtualMachine) (params.ProviderInstance, error)
- func AzurePowerStateToGarmPowerState(vm armcompute.VirtualMachine) string
- func GenerateFakeKey() (string, error)
- func TagsFromBootstrapParams(bootstrapParams params.BootstrapInstance, controllerID string) (map[string]*string, error)
- type ImageDetails
Constants ¶
View Source
const ( ControllerIDTagName = "garm-controller-id" PoolIDTagName = "garm-pool-id" )
Variables ¶
This section is empty.
Functions ¶
func AzureInstanceToParamsInstance ¶
func AzureInstanceToParamsInstance(vm armcompute.VirtualMachine) (params.ProviderInstance, error)
func AzurePowerStateToGarmPowerState ¶
func AzurePowerStateToGarmPowerState(vm armcompute.VirtualMachine) string
func GenerateFakeKey ¶
GenerateFakeKey generates a SSH key pair, returns the public key, and discards the private key. This is useful for droplets that don't need a public key, since DO & Azure insists on requiring one.
func TagsFromBootstrapParams ¶
Types ¶
type ImageDetails ¶
type ImageDetails struct { ID string IsCommunity bool Offer string Publisher string SKU string Version string }
func URNToImageDetails ¶
func URNToImageDetails(urn string) (ImageDetails, error)
Click to show internal directories.
Click to hide internal directories.