applicationscaler

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 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 application 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