util

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func GenerateFakeKey() (string, error)

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

func TagsFromBootstrapParams(bootstrapParams params.BootstrapInstance, controllerID string) (map[string]*string, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL