Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { ModelUUID() string MigrationPhase() (migration.Phase, error) WatchMigrationPhase() (state.NotifyWatcher, error) }
Backend exposes information about any current model migrations.
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
Facade lets clients watch and get models' migration phases.
func New ¶
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.
Click to show internal directories.
Click to hide internal directories.