applicationscaler

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API makes calls to the ApplicationScaler facade.

func NewAPI

func NewAPI(caller base.APICaller, newWatcher NewWatcherFunc) *API

NewAPI returns a new API using the supplied caller.

func (*API) Rescale

func (api *API) Rescale(services []string) error

Rescale requests that all supplied service names be rescaled to their minimum configured sizes. It returns the first error it encounters.

func (*API) Watch

func (api *API) Watch() (watcher.StringsWatcher, error)

Watch returns a StringsWatcher that delivers the names of services that may need to be rescaled.

type NewWatcherFunc

NewWatcherFunc exists to let us test Watch properly.

Jump to

Keyboard shortcuts

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