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

package minunitsworker

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


Package Files


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). Updated 2020-05-12. Refresh now. Tools for package owners.