juju: github.com/juju/juju/apiserver/facades/controller/applicationscaler Index | Files

package applicationscaler

import "github.com/juju/juju/apiserver/facades/controller/applicationscaler"


Package Files

facade.go shim.go

type Backend Uses

type Backend interface {

    // WatchScaledServices returns a watcher that sends service ids
    // that might not have enough units.
    WatchScaledServices() state.StringsWatcher

    // RescaleService ensures that the named service has at least its
    // configured minimum unit count.
    RescaleService(name string) error

Backend exposes functionality required by Facade.

type Facade Uses

type Facade struct {
    // contains filtered or unexported fields

Facade allows model-manager clients to watch and rescale services.

func NewAPI Uses

func NewAPI(st *state.State, res facade.Resources, auth facade.Authorizer) (*Facade, error)

NewAPI provides the required signature for facade registration.

func NewFacade Uses

func NewFacade(backend Backend, res facade.Resources, auth facade.Authorizer) (*Facade, error)

NewFacade creates a new authorized Facade.

func (*Facade) Rescale Uses

func (facade *Facade) Rescale(args params.Entities) params.ErrorResults

Rescale causes any supplied services to be scaled up to their minimum size.

func (*Facade) Watch Uses

func (facade *Facade) Watch() (params.StringsWatchResult, error)

Watch returns a watcher that sends the names of services whose unit count may be below their configured minimum.

Package applicationscaler imports 7 packages (graph) and is imported by 4 packages. Updated 2020-07-21. Refresh now. Tools for package owners.