gce

package
v0.0.0-...-b46d755 Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GceManager

type GceManager struct {
	// contains filtered or unexported fields
}

GceManager is handles gce communication and data caching.

func CreateGceManager

func CreateGceManager(migs []*config.MigConfig) (*GceManager, error)

CreateGceManager constructs gceManager object.

func (*GceManager) DeleteInstances

func (m *GceManager) DeleteInstances(instances []*config.InstanceConfig) error

DeleteInstances deletes the given instances. All instances must be controlled by the same MIG.

func (*GceManager) GetMigForInstance

func (m *GceManager) GetMigForInstance(instance *config.InstanceConfig) (*config.MigConfig, error)

GetMigForInstance returns MigConfig of the given Instance

func (*GceManager) GetMigSize

func (m *GceManager) GetMigSize(migConf *config.MigConfig) (int64, error)

GetMigSize gets MIG size.

func (*GceManager) SetMigSize

func (m *GceManager) SetMigSize(migConf *config.MigConfig, size int64) error

SetMigSize sets MIG size.

Jump to

Keyboard shortcuts

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