cloudfunctions

package
v0.0.0-...-e29ad75 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InstanceTemplateName = "batch-mig-template"
View Source
const NetworkName = "default"
View Source
const ProjectID = "martins-project-2014113"
View Source
const Zone = "us-central1-a"

Variables

This section is empty.

Functions

func ApplyInstanceTemplateToMIG

func ApplyInstanceTemplateToMIG(instanceGroupName string)

ApplyInstanceTemplateToMIG will apply an instance template to a Managed Instance Group

func DeployCloudRun

func DeployCloudRun()

DeployMIG checks to see if a specified Managed Instance Group(MIG) is up and running. If it is running, it should shut it down, if it is unavailable it will restart it.

func DeployMIG

func DeployMIG()

func GetInstanceTemplate

func GetInstanceTemplate(computeService *compute.Service) (*compute.InstanceTemplate, error)

Returns an instance template

func InitComputeService

func InitComputeService() (*compute.Service, error)

InitComputeService obtains the compute service that allows us to use the compute API

func StartMIG

func StartMIG(computeService *compute.Service, template *compute.InstanceTemplate)

StartMIG starts a managed instance group. This MIG will not have any instances.

Types

This section is empty.

Jump to

Keyboard shortcuts

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