plugin

package
v0.0.0-...-1081886 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoscaler

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

func NewAutoscaler

func NewAutoscaler(hpaYaml string) (*Autoscaler, error)

func (*Autoscaler) CreatePod

func (a *Autoscaler) CreatePod(pod *proto.Pod) error

func (*Autoscaler) DeletePod

func (a *Autoscaler) DeletePod(pod *proto.Pod) error

func (*Autoscaler) Scale

func (a *Autoscaler) Scale(now int64) (int32, error)

func (*Autoscaler) Stat

func (a *Autoscaler) Stat(stat []*proto.Stat) error

func (*Autoscaler) String

func (a *Autoscaler) String() string

func (*Autoscaler) UpdatePod

func (a *Autoscaler) UpdatePod(pod *proto.Pod) error

Jump to

Keyboard shortcuts

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