Documentation ¶
Index ¶
- type GceManager
- func (m *GceManager) DeleteInstances(instances []*config.InstanceConfig) error
- func (m *GceManager) GetMigForInstance(instance *config.InstanceConfig) (*config.MigConfig, error)
- func (m *GceManager) GetMigSize(migConf *config.MigConfig) (int64, error)
- func (m *GceManager) SetMigSize(migConf *config.MigConfig, size int64) error
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.
Click to show internal directories.
Click to hide internal directories.