scaler

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 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 Factory

type Factory interface {
	New(log *logrus.Entry, ssc compute.VirtualMachineScaleSetsClient, vmc compute.VirtualMachineScaleSetVMsClient, kubeclient kubeclient.Interface, resourceGroup string, ss *azcompute.VirtualMachineScaleSet, testConfig api.TestConfig, sshkey *rsa.PrivateKey) Scaler
}

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