extvm

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetIDVM                  = "com.steadybit.extension_gcp.vm"
	VirtualMachineStateActionId = "com.steadybit.extension_gcp.vm.state"
)

Variables

This section is empty.

Functions

func GetAllVirtualMachinesInstances

func GetAllVirtualMachinesInstances(ctx context.Context, client GCPInstancesApi) ([]*computepb.Instance, error)

func GetDiscoveryList

func GetDiscoveryList() discovery_kit_api.DiscoveryList

func GetGcpInstancesClient

func GetGcpInstancesClient(ctx context.Context) (*compute.InstancesClient, error)

func InstancesToTargets

func InstancesToTargets(instances []*computepb.Instance) []discovery_kit_api.Target

func RegisterDiscoveryHandlers

func RegisterDiscoveryHandlers()

Types

type GCPInstancesApi

type GCPInstancesApi interface {
	AggregatedList(ctx context.Context, req *computepb.AggregatedListInstancesRequest, opts ...gax.CallOption) *compute.InstancesScopedListPairIterator
}

type VirtualMachineStateChangeState

type VirtualMachineStateChangeState struct {
	ProjectId string
	VmName    string
	Zone      string
	Action    string
}

Jump to

Keyboard shortcuts

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