servicescale

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, rContext *types.Context, lock *sync.RWMutex, autoscalers map[string]*SimpleScale) error

Types

type SSRHandler

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

func NewHandler

func NewHandler(ctx context.Context,
	services riov1controller.ServiceController,
	podClientCache corev1controller.PodCache,
	autoscalers map[string]*SimpleScale,
	lock *sync.RWMutex) *SSRHandler

func (*SSRHandler) OnChange

func (s *SSRHandler) OnChange(key string, svc *riov1.Service) (*riov1.Service, error)

type SimpleScale added in v0.1.3

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

func NewSimpleScale added in v0.1.3

func NewSimpleScale(svc *riov1.Service, podCache corev1controller.PodCache, services riov1controller.ServiceController) SimpleScale

func (*SimpleScale) ReportMetric added in v0.1.3

func (s *SimpleScale) ReportMetric()

func (*SimpleScale) Scale added in v0.1.3

func (s *SimpleScale) Scale() error

func (*SimpleScale) Start added in v0.1.3

func (s *SimpleScale) Start()

func (*SimpleScale) Stop added in v0.1.3

func (s *SimpleScale) Stop()

Jump to

Keyboard shortcuts

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