internal_gcp

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGCPData

func GetGCPData() ([]byte, error)

func GetGCPDiskImageURL

func GetGCPDiskImageURL(projectID, family string) string

func GetGCPRegionFromZone

func GetGCPRegionFromZone(zone string) (string, error)

func GetStartupScript

func GetStartupScript() (string, error)

func IsValidGCPDiskImageFamily

func IsValidGCPDiskImageFamily(location, diskImageFamilyToCheck string) (string, error)

Returns the name of the disk image, if the disk image family is valid, otherwise returns an empty string

func IsValidGCPLocation

func IsValidGCPLocation(location string) bool

func IsValidGCPMachineType

func IsValidGCPMachineType(location, machineType string) bool

Types

type DiskImage

type DiskImage struct {
	Name         string   `yaml:"name"`
	Family       string   `yaml:"family"`
	Description  string   `yaml:"description"`
	DiskSizeGb   string   `yaml:"diskSizeGb"`
	Licenses     []string `yaml:"licenses"`
	Architecture string   `yaml:"architecture"`
}

type GCPData

type GCPData struct {
	Locations  map[string][]string `yaml:"locations"`
	DiskImages []DiskImage         `yaml:"diskImages"`
}

Jump to

Keyboard shortcuts

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