gce

package
v0.0.0-...-2045cfa Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProjectMap = map[string]string{
	"demo":      "arryved-demo1",
	"dev":       "arryved-177921",
	"dev-int":   "arryved-234222",
	"tools":     "arryved-tools",
	"stg":       "arryved-staging",
	"prod":      "arryved-prod",
	"cde":       "arryved-secure",
	"sandbox":   "arryved-177921",
	"simc-prod": "simc-prod",
}

TODO use a canon API/library instead of hard-coding

Functions

func GetProjectNumber

func GetProjectNumber(projectId string) (string, error)

Types

type Client

type Client struct {
	Env    string
	Region string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(env, region string) *Client

func (*Client) GetRegionAppControlInstances

func (c *Client) GetRegionAppControlInstances() (map[config.ClusterId][]*compute.Instance, error)

type InstanceMetadata

type InstanceMetadata struct {
	Clusters []config.ClusterId `json:"clusters"`
}

Jump to

Keyboard shortcuts

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