Packages¶
Package cocaine¶
-
exception
cocaine.exceptions.
ChokeEvent
-
exception
cocaine.exceptions.
CocaineError
-
exception
cocaine.exceptions.
DisconnectionError
(name)
-
exception
cocaine.exceptions.
InvalidApiVersion
(servicename, expected_version, got_version)
-
exception
cocaine.exceptions.
InvalidChunk
-
exception
cocaine.exceptions.
InvalidMessageType
(servicename, reason, code, category=999)
-
exception
cocaine.exceptions.
ServiceConnectionError
(message)
-
exception
cocaine.exceptions.
ServiceError
(servicename, reason, code, category=999)
Package cocaine.worker¶
-
class
cocaine.worker.worker.
NullTokenManager
-
class
cocaine.worker.worker.
TicketVendingMachineTokenManager
(name, ticket, interval, loop=None)
-
class
cocaine.worker.worker.
TokenManager
Represents authorization token manager interface which is responsible for fetching and updating auth tokens.
Authorization systems are too different to create tiny abstraction to unite them. Some of them supports token refreshing, some does not. Instead of creating such abstraction layer we explicitly ask Cocaine Runtime which type of auth plugin is currently installed to select the proper way for token handling.
-
exception
cocaine.worker.request.
RequestError
(code, reason)