juju: github.com/juju/juju/apiserver/facades/controller/modelupgrader Index | Files

package modelupgrader

import "github.com/juju/juju/apiserver/facades/controller/modelupgrader"


Package Files

backend.go modelupgrader.go

type Backend Uses

type Backend interface {
    Cloud(string) (cloud.Cloud, error)

type EntityWatcher Uses

type EntityWatcher interface {
    Watch(params.Entities) (params.NotifyWatchResults, error)

EntityWatcher is an interface that provides a means of watching entities.

type Facade Uses

type Facade struct {
    // contains filtered or unexported fields

func NewFacade Uses

func NewFacade(
    backend Backend,
    pool Pool,
    providers ProviderRegistry,
    entityWatcher EntityWatcher,
    statusSetter StatusSetter,
    auth facade.Authorizer,
) (*Facade, error)

NewFacade returns a new Facade using the given Backend and Authorizer.

func NewStateFacade Uses

func NewStateFacade(ctx facade.Context) (*Facade, error)

NewStateFacade provides the signature required for facade registration.

func (*Facade) ModelEnvironVersion Uses

func (f *Facade) ModelEnvironVersion(args params.Entities) (params.IntResults, error)

ModelEnvironVersion returns the current version of the environ corresponding to each specified model.

func (*Facade) ModelTargetEnvironVersion Uses

func (f *Facade) ModelTargetEnvironVersion(args params.Entities) (params.IntResults, error)

ModelTargetEnvironVersion returns the target version of the environ corresponding to each specified model. The target version is the environ provider's version.

func (*Facade) SetModelEnvironVersion Uses

func (f *Facade) SetModelEnvironVersion(args params.SetModelEnvironVersions) (params.ErrorResults, error)

SetModelEnvironVersion sets the current version of the environ corresponding to each specified model.

func (*Facade) SetModelStatus Uses

func (f *Facade) SetModelStatus(args params.SetStatus) (params.ErrorResults, error)

SetModelStatus sets the status of each given model.

func (*Facade) WatchModelEnvironVersion Uses

func (f *Facade) WatchModelEnvironVersion(args params.Entities) (params.NotifyWatchResults, error)

WatchModelEnvironVersion watches for changes to the environ version of the specified models.

NOTE(axw) this is currently implemented in terms of state.Model.Watch, so the client may be notified of changes unrelated to the environ version.

type Model Uses

type Model interface {
    CloudName() string
    EnvironVersion() int
    SetEnvironVersion(int) error

type Pool Uses

type Pool interface {
    GetModel(string) (Model, func(), error)

func NewPool Uses

func NewPool(pool *state.StatePool) Pool

type ProviderRegistry Uses

type ProviderRegistry interface {
    Provider(string) (environs.EnvironProvider, error)

ProviderRegistry provides the subset of environs.ProviderRegistry that we require.

type StatusSetter Uses

type StatusSetter interface {
    SetStatus(params.SetStatus) (params.ErrorResults, error)

StatusSetter is an interface that provides a means of setting the status of entities.

Package modelupgrader imports 10 packages (graph) and is imported by 4 packages. Updated 2020-08-24. Refresh now. Tools for package owners.