Documentation ¶
Index ¶
- Constants
- func ApplyInstanceTemplateToMIG(instanceGroupName string)
- func DeployCloudRun()
- func DeployMIG()
- func GetInstanceTemplate(computeService *compute.Service) (*compute.InstanceTemplate, error)
- func InitComputeService() (*compute.Service, error)
- func StartMIG(computeService *compute.Service, template *compute.InstanceTemplate)
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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.