instance

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiskIsCustomerEncrypted

func DiskIsCustomerEncrypted(resource commons.Resource) bool

func GetComputeZones

func GetComputeZones(account internal.GCPAccount) []string

Get the compute zones based on the list of compute regions provided in the config

func GetDisks

func GetDisks(account internal.GCPAccount, computeZone string) []computepb.Disk

func GetInstanceGroupsAllZones added in v1.5.0

func GetInstanceGroupsAllZones(account internal.GCPAccount) []computepb.InstanceGroupManager

Get all the instance groups (of type managed) of the account (zonal and regional)

func GetInstances

func GetInstances(account internal.GCPAccount, computeZone string) []computepb.Instance

Get all the VM instances of the account for the given compute zone

func InstanceGroupIsMultiZone added in v1.5.0

func InstanceGroupIsMultiZone(resource commons.Resource) bool

func InstanceNoPublicIPAttached

func InstanceNoPublicIPAttached(resource commons.Resource) bool

func RunChecks

func RunChecks(wa *sync.WaitGroup, account internal.GCPAccount, c *commons.Config, queue chan []commons.Check)

Types

type InstanceGroup added in v1.5.0

type InstanceGroup struct {
	InstanceGroup computepb.InstanceGroupManager
}

This type implements commons.Resource

func (*InstanceGroup) GetID added in v1.5.0

func (i *InstanceGroup) GetID() string

type VMDisk

type VMDisk struct {
	Disk computepb.Disk
}

This type implements commons.Resource

func (*VMDisk) GetID

func (d *VMDisk) GetID() string

type VMInstance

type VMInstance struct {
	Instance computepb.Instance
}

This type implements commons.Resource

func (*VMInstance) GetID

func (i *VMInstance) GetID() string

Jump to

Keyboard shortcuts

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