Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

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

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

func NewFacade

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

NewFacade returns a Facade backed by the supplied api caller.

func (*Facade) Phase

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

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

func (*Facade) Watch

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

NewWatcherFunc exists to let us unit test Facade without patching.

Source Files