juju: github.com/juju/juju/api/applicationscaler Index | Files

package applicationscaler

import "github.com/juju/juju/api/applicationscaler"

Index

Package Files

api.go

type API Uses

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

API makes calls to the ApplicationScaler facade.

func NewAPI Uses

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

NewAPI returns a new API using the supplied caller.

func (*API) Rescale Uses

func (api *API) Rescale(applications []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 Uses

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

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

type NewWatcherFunc Uses

type NewWatcherFunc func(base.APICaller, params.StringsWatchResult) watcher.StringsWatcher

NewWatcherFunc exists to let us test Watch properly.

Package applicationscaler imports 6 packages (graph) and is imported by 19 packages. Updated 2019-08-25. Refresh now. Tools for package owners.