Documentation ¶
Index ¶
- Constants
- func ConfigInit(envLookup *env.VarSet, jetstreamConfig *api.PortalConfig)
- func Init(portalProxy api.PortalProxy) (api.StratosPlugin, error)
- type CFHosting
- func (ch *CFHosting) EchoMiddleware(h echo.HandlerFunc) echo.HandlerFunc
- func (ch *CFHosting) GetEndpointPlugin() (api.EndpointPlugin, error)
- func (ch *CFHosting) GetMiddlewarePlugin() (api.MiddlewarePlugin, error)
- func (ch *CFHosting) GetRoutePlugin() (api.RoutePlugin, error)
- func (ch *CFHosting) Init() error
- func (ch *CFHosting) SessionEchoMiddleware(h echo.HandlerFunc) echo.HandlerFunc
Constants ¶
View Source
const ( VCapApplication = "VCAP_APPLICATION" CFApiURLOverride = "CF_API_URL" CFApiForceSecure = "CF_API_FORCE_SECURE" ForceEnablePersistenceFeatures = "FORCE_ENABLE_PERSISTENCE_FEATURES" SkipAutoRegister = "SKIP_AUTO_REGISTER" SQLiteProviderName = "sqlite" )
Constants
Variables ¶
This section is empty.
Functions ¶
func ConfigInit ¶
func ConfigInit(envLookup *env.VarSet, jetstreamConfig *api.PortalConfig)
ConfigInit updates the config if needed
func Init ¶
func Init(portalProxy api.PortalProxy) (api.StratosPlugin, error)
Init creates a new CFHosting plugin
Types ¶
type CFHosting ¶
type CFHosting struct {
// contains filtered or unexported fields
}
CFHosting is a plugin to configure Stratos when hosted in Cloud Foundry
func (*CFHosting) EchoMiddleware ¶
func (ch *CFHosting) EchoMiddleware(h echo.HandlerFunc) echo.HandlerFunc
EchoMiddleware is the Echo server middleware provided by this plugin
func (*CFHosting) GetEndpointPlugin ¶
func (ch *CFHosting) GetEndpointPlugin() (api.EndpointPlugin, error)
GetEndpointPlugin gets the endpoint plugin for this plugin
func (*CFHosting) GetMiddlewarePlugin ¶
func (ch *CFHosting) GetMiddlewarePlugin() (api.MiddlewarePlugin, error)
GetMiddlewarePlugin gets the middleware plugin for this plugin
func (*CFHosting) GetRoutePlugin ¶
func (ch *CFHosting) GetRoutePlugin() (api.RoutePlugin, error)
GetRoutePlugin gets the route plugin for this plugin
func (*CFHosting) SessionEchoMiddleware ¶
func (ch *CFHosting) SessionEchoMiddleware(h echo.HandlerFunc) echo.HandlerFunc
SessionEchoMiddleware is the Echo server session middleware provided by this plugin For cloud foundry session affinity Ensure we add a cookie named "JSESSIONID" for Cloud Foundry session affinity
Click to show internal directories.
Click to hide internal directories.