deckhand.barbican.client_wrapper module

class deckhand.barbican.client_wrapper.BarbicanClientWrapper[source]

Bases: object

Barbican client wrapper class that encapsulates authentication logic.

call(method, *args, **kwargs)[source]

Call a barbican client method and retry on stale token.

Parameters:
  • method – Name of the client method to call as a string.
  • args – Client method arguments.
  • kwargs – Client method keyword arguments.
  • retry_on_conflict – Boolean value. Whether the request should be retried in case of a conflict error (HTTP 409) or not. If retry_on_conflict is False the cached instance of the client won’t be used. Defaults to True.