scaler

package
v0.0.0-...-5e355cb Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonScaleDeployment       = "ScaleSuccess"
	ReasonFailedScaleDeployment = "ScaleFail"
)

Variables

This section is empty.

Functions

func CurrentQueueSize

func CurrentQueueSize(sess *session.Session, queueUrl string) (int64, error)

Types

type Scaler

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

func New

func New(client *kubernetes.Clientset, store cache.Store, interval time.Duration) *Scaler

func (Scaler) Run

func (s Scaler) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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