Base handler¶
Base handler
Module realize base class for all handlers.
- class luna_backport3.app.handlers.base_handler.APIProxyBaseHandler(request)[source]¶
Class for proxy handlers to luna-api
- property serviceAddress: ServiceAddressSettings¶
Get a image store service address :returns: a image store service address
- Return type:
ServiceAddressSettings
- property serviceTimeouts: ServiceTimeoutsSettings¶
Get a image store service timeouts :returns: a image store service timeouts
- Return type:
ServiceTimeoutsSettings
- class luna_backport3.app.handlers.base_handler.BaseHandler(request)[source]¶
Base handler for other handlers.
- property app: Backport3App¶
Get running app :returns: app
- Return type:
Backport3App
- async checkDescriptor(descriptorId)[source]¶
Check descriptor existence :param descriptorId: descriptor id
- Returns:
True if descriptor exists otherwise False
- Raises:
VLException(statusCode=500, error=Error.UnknownServiceError) if check face is failed –
- Return type:
bool
- property config: SettingsBackport3¶
Get app config :returns: app config
- Return type:
SettingsBackport3