Package oauth2client :: Module multistore_file :: Class _MultiStore :: Class _Storage
[hide private]
[frames] | no frames]

Class _Storage

source code


A Storage object that knows how to read/write a single credential.

Instance Methods [hide private]
 
__init__(self, multistore, key)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
acquire_lock(self)
Acquires any lock necessary to access this Storage.
source code
 
release_lock(self)
Release the Storage lock.
source code
 
locked_get(self)
Retrieve credential.
source code
 
locked_put(self, credentials)
Write a credential.
source code
 
locked_delete(self)
Delete a credential.
source code

Inherited from client.Storage: delete, get, put

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, multistore, key)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

acquire_lock(self)

source code 
Acquires any lock necessary to access this Storage.

This lock is not reentrant.

Overrides: client.Storage.acquire_lock

release_lock(self)

source code 
Release the Storage lock.

Trying to release a lock that isn't held will result in a
RuntimeError.

Overrides: client.Storage.release_lock

locked_get(self)

source code 
Retrieve credential.

The Storage lock must be held when this is called.

Returns:
  oauth2client.client.Credentials

Overrides: client.Storage.locked_get

locked_put(self, credentials)

source code 
Write a credential.

The Storage lock must be held when this is called.

Args:
  credentials: Credentials, the credentials to store.

Overrides: client.Storage.locked_put

locked_delete(self)

source code 
Delete a credential.

The Storage lock must be held when this is called.

Args:
  credentials: Credentials, the credentials to store.

Overrides: client.Storage.locked_delete