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

package migrationflag

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

Index

Package Files

facade.go

type Facade Uses

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

Facade lets a client watch and query a model's migration phase.

func NewFacade Uses

func NewFacade(apiCaller base.APICaller, newWatcher NewWatcherFunc) *Facade

NewFacade returns a Facade backed by the supplied api caller.

func (*Facade) Phase Uses

func (facade *Facade) Phase(uuid string) (migration.Phase, error)

Phase returns the current migration.Phase for the supplied model UUID.

func (*Facade) Watch Uses

func (facade *Facade) Watch(uuid string) (watcher.NotifyWatcher, error)

Watch returns a NotifyWatcher that will inform of potential changes to the result of Phase for the supplied model UUID.

type NewWatcherFunc Uses

type NewWatcherFunc func(base.APICaller, params.NotifyWatchResult) watcher.NotifyWatcher

NewWatcherFunc exists to let us unit test Facade without patching.

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