scaler

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

Factory interface is to create new Scaler instances.

func NewFactory

func NewFactory() Factory

NewFactory create a new Factory instance.

type Scaler

type Scaler interface {
	Scale(ctx context.Context, count int64) *api.PluginError
}

Scaler is an interface that changes the number of VMs in a scaleset until they meet the 'count' argument. Scale function simply checks which direction to scale up or down.

Jump to

Keyboard shortcuts

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