gceutil

package
v0.0.0-...-2148625 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 12

Documentation

Overview

Package gceutil provides utility functions to help with instances on Google Compute Engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func COSImageURL

func COSImageURL(cl *http.Client) (string, error)

COSImageURL returns the URL of the latest stable Container-Optimized OS image for running on Google Compute Engine.

func CoreOSImageURL

func CoreOSImageURL(cl *http.Client) (string, error)

CoreOSImageURL returns the URL of the latest stable CoreOS image for running on Google Compute Engine.

func InstanceGroups

func InstanceGroups(svc *compute.Service, proj, zone string) (map[string]InstanceGroupAndManager, error)

InstanceGroups returns all the instance groups in a project's zone, along with their associated InstanceGroupManagers. The returned map is keyed by the instance group identifier URL.

Types

type InstanceGroupAndManager

type InstanceGroupAndManager struct {
	Group *compute.InstanceGroup

	// Manager is the manager of the Group. It may be nil.
	Manager *compute.InstanceGroupManager
}

InstanceGroupAndManager contains both an InstanceGroup and its InstanceGroupManager, if any.

Jump to

Keyboard shortcuts

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