facadetest

package
v0.0.0-...-e653fdf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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
	MultiwatcherFactory_ multiwatcher.Factory
	ID_                  string
	RequestRecorder_     facade.RequestRecorder
	Cancel_              <-chan struct{}

	LeadershipClaimer_  leadership.Claimer
	LeadershipRevoker_  leadership.Revoker
	LeadershipChecker_  leadership.Checker
	LeadershipPinner_   leadership.Pinner
	LeadershipReader_   leadership.Reader
	SingularClaimer_    lease.Claimer
	CharmhubHTTPClient_ facade.HTTPClient
	ControllerDB_       coredatabase.TrackedDB
	// 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) CachedModel

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

CachedModel is part of the facade.Context interface.

func (Context) Cancel

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

Cancel 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) ControllerDB

func (context Context) ControllerDB() (coredatabase.TrackedDB, error)

func (Context) Dispose

func (context Context) Dispose()

Dispose is part of the facade.Context interface.

func (Context) HTTPClient

func (context Context) HTTPClient(purpose facade.HTTPClientPurpose) facade.HTTPClient

func (Context) Hub

func (context Context) Hub() facade.Hub

Hub is part of the facade.Context interface.

func (Context) ID

func (context Context) ID() string

ID 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) LeadershipReader

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

LeadershipReader implements facade.Context.

func (Context) LeadershipRevoker

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

LeadershipRevoker implements facade.Context.

func (Context) ModelPresence

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

ModelPresence implements facade.Presence.

func (Context) MultiwatcherFactory

func (context Context) MultiwatcherFactory() multiwatcher.Factory

MultiwatcherFactory is part of the facade.Context interface.

func (Context) Presence

func (context Context) Presence() facade.Presence

Presence implements facade.Context.

func (Context) RequestRecorder

func (context Context) RequestRecorder() facade.RequestRecorder

RequestRecorder defines a metrics collector for outbound requests.

func (Context) Resources

func (context Context) Resources() facade.Resources

Resources is part of the facade.Context interface.

func (Context) SingularClaimer

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

SingularClaimer implements facade.Context.

func (Context) State

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

State is part of the facade.Context interface.

func (Context) StatePool

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

StatePool is part of of the facade.Context interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL