juju: github.com/wallyworld/juju/apiserver/facade/facadetest Index | Files

package facadetest

import "github.com/wallyworld/juju/apiserver/facade/facadetest"

Index

Package Files

context.go

type Context Uses

type Context struct {
    Auth_                facade.Authorizer
    Dispose_             func()
    Hub_                 facade.Hub
    Resources_           facade.Resources
    State_               *state.State
    StatePool_           *state.StatePool
    Controller_          *cache.Controller
    MultiwatcherFactory_ multiwatcher.Factory
    ID_                  string
    Cancel_              <-chan struct{}

    LeadershipClaimer_ leadership.Claimer
    LeadershipRevoker_ leadership.Revoker
    LeadershipChecker_ leadership.Checker
    LeadershipPinner_  leadership.Pinner
    LeadershipReader_  leadership.Reader
    SingularClaimer_   lease.Claimer
    // Identity is not part of the facade.Context interface, but is instead
    // used to make sure that the context objects are the same.
    Identity string
}

Context implements facade.Context in the simplest possible way.

func (Context) Auth Uses

func (context Context) Auth() facade.Authorizer

Auth is part of the facade.Context interface.

func (Context) CachedModel Uses

func (context Context) CachedModel(uuid string) (*cache.Model, error)

CachedModel is part of the facade.Context interface.

func (Context) Cancel Uses

func (context Context) Cancel() <-chan struct{}

Cancel is part of the facade.Context interface.

func (Context) Controller Uses

func (context Context) Controller() *cache.Controller

Controller is part of the facade.Context interface.

func (Context) Dispose Uses

func (context Context) Dispose()

Dispose is part of the facade.Context interface.

func (Context) Hub Uses

func (context Context) Hub() facade.Hub

Hub is part of the facade.Context interface.

func (Context) ID Uses

func (context Context) ID() string

ID is part of the facade.Context interface.

func (Context) LeadershipChecker Uses

func (context Context) LeadershipChecker() (leadership.Checker, error)

LeadershipChecker implements facade.Context.

func (Context) LeadershipClaimer Uses

func (context Context) LeadershipClaimer(modelUUID string) (leadership.Claimer, error)

LeadershipClaimer implements facade.Context.

func (Context) LeadershipPinner Uses

func (context Context) LeadershipPinner(modelUUID string) (leadership.Pinner, error)

LeadershipPinner implements facade.Context.

func (Context) LeadershipReader Uses

func (context Context) LeadershipReader(modelUUID string) (leadership.Reader, error)

LeadershipPinner implements facade.Context.

func (Context) LeadershipRevoker Uses

func (context Context) LeadershipRevoker(modelUUID string) (leadership.Revoker, error)

LeadershipRevoker implements facade.Context.

func (Context) ModelPresence Uses

func (context Context) ModelPresence(modelUUID string) facade.ModelPresence

ModelPresence implements facade.Presence.

func (Context) MultiwatcherFactory Uses

func (context Context) MultiwatcherFactory() multiwatcher.Factory

MultiwatcherFactory is part of the facade.Context interface.

func (Context) Presence Uses

func (context Context) Presence() facade.Presence

Presence implements facade.Context.

func (Context) Resources Uses

func (context Context) Resources() facade.Resources

Resources is part of the facade.Context interface.

func (Context) SingularClaimer Uses

func (context Context) SingularClaimer() (lease.Claimer, error)

SingularClaimer implements facade.Context.

func (Context) State Uses

func (context Context) State() *state.State

State is part of the facade.Context interface.

func (Context) StatePool Uses

func (context Context) StatePool() *state.StatePool

StatePool is part of of the facade.Context interface.

Package facadetest imports 7 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.