Documentation ¶
Index ¶
- type Context
- func (context Context) Auth() facade.Authorizer
- func (context Context) Controller() *cache.Controller
- func (context Context) Dispose()
- func (context Context) Hub() facade.Hub
- func (context Context) ID() string
- func (context Context) LeadershipChecker() (leadership.Checker, error)
- func (context Context) LeadershipClaimer(modelUUID string) (leadership.Claimer, error)
- func (context Context) LeadershipPinner(modelUUID string) (leadership.Pinner, error)
- func (context Context) ModelPresence(modelUUID string) facade.ModelPresence
- func (context Context) Presence() facade.Presence
- func (context Context) Resources() facade.Resources
- func (context Context) SingularClaimer() (lease.Claimer, error)
- func (context Context) State() *state.State
- func (context Context) StatePool() *state.StatePool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Auth_ facade.Authorizer Dispose_ func() Hub_ facade.Hub Resources_ facade.Resources State_ *state.State StatePool_ *state.StatePool Controller_ *cache.Controller ID_ string LeadershipClaimer_ leadership.Claimer LeadershipChecker_ leadership.Checker LeadershipPinner_ leadership.Pinner 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 ¶
func (context Context) Auth() facade.Authorizer
Auth is part of the facade.Context interface.
func (Context) Controller ¶
func (context Context) Controller() *cache.Controller
Controller is part of the facade.Context interface.
func (Context) Dispose ¶
func (context Context) Dispose()
Dispose is part of the facade.Context interface.
func (Context) LeadershipChecker ¶
func (context Context) LeadershipChecker() (leadership.Checker, error)
LeadershipChecker implements facade.Context.
func (Context) LeadershipClaimer ¶
func (context Context) LeadershipClaimer(modelUUID string) (leadership.Claimer, error)
LeadershipClaimer implements facade.Context.
func (Context) LeadershipPinner ¶
func (context Context) LeadershipPinner(modelUUID string) (leadership.Pinner, error)
LeadershipPinner implements facade.Context.
func (Context) ModelPresence ¶
func (context Context) ModelPresence(modelUUID string) facade.ModelPresence
ModelPresence implements facade.Presence.
func (Context) SingularClaimer ¶
SingularClaimer implements facade.Context.
Click to show internal directories.
Click to hide internal directories.