juju: github.com/juju/juju/apiserver/facades/agent/migrationflag Index | Files

package migrationflag

import "github.com/juju/juju/apiserver/facades/agent/migrationflag"

Index

Package Files

facade.go shim.go

type Backend Uses

type Backend interface {
    ModelUUID() string
    MigrationPhase() (migration.Phase, error)
    WatchMigrationPhase() state.NotifyWatcher
}

Backend exposes information about any current model migrations.

type Facade Uses

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

Facade lets clients watch and get models' migration phases.

func New Uses

func New(backend Backend, resources facade.Resources, auth facade.Authorizer) (*Facade, error)

New creates a Facade backed by backend and resources. If auth doesn't identity the client as a machine agent or a unit agent, it will return common.ErrPerm.

func NewFacade Uses

func NewFacade(st *state.State, resources facade.Resources, auth facade.Authorizer) (*Facade, error)

NewFacade wraps New to express the supplied *state.State as a Backend.

func (*Facade) Phase Uses

func (facade *Facade) Phase(entities params.Entities) params.PhaseResults

Phase returns the current migration phase or an error for every supplied entity.

func (*Facade) Watch Uses

func (facade *Facade) Watch(entities params.Entities) params.NotifyWatchResults

Watch returns an id for use with the NotifyWatcher facade, or an error, for every supplied entity.

Package migrationflag imports 8 packages (graph) and is imported by 3 packages. Updated 2019-09-01. Refresh now. Tools for package owners.