juju: github.com/juju/juju/worker/minunitsworker Index | Files

package minunitsworker

import "github.com/juju/juju/worker/minunitsworker"

Index

Package Files

minunitsworker.go

func NewMinUnitsWorker Uses

func NewMinUnitsWorker(st *state.State) worker.Worker

NewMinUnitsWorker returns a Worker that runs application.EnsureMinUnits() if the number of alive units belonging to a application decreases, or if the minimum required number of units for a application is increased.

type MinUnitsWorker Uses

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

MinUnitsWorker ensures the minimum number of units for applications is respected.

func (*MinUnitsWorker) Handle Uses

func (mu *MinUnitsWorker) Handle(applicationNames []string) error

func (*MinUnitsWorker) SetUp Uses

func (mu *MinUnitsWorker) SetUp() (state.StringsWatcher, error)

func (*MinUnitsWorker) TearDown Uses

func (mu *MinUnitsWorker) TearDown() error

Package minunitsworker imports 4 packages (graph) and is imported by 22 packages. Updated 2018-08-18. Refresh now. Tools for package owners.