migrationflag

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL