Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.encryption.SymmetricKeyCache Class Reference

List of all members.

Public Member Functions

def __init__
def get
def put
def clear

Public Attributes

 repos

Detailed Description

Cache symmetric keys in memory.

Definition at line 39 of file encryption.py.


Constructor & Destructor Documentation

Definition at line 43 of file encryption.py.

00043 
00044     def __init__(self):
00045         self.clear()
    

Here is the call graph for this function:


Member Function Documentation

Definition at line 56 of file encryption.py.

00056 
00057     def clear(self):
00058         self.repos = {}
    

Here is the caller graph for this function:

def obnamlib.encryption.SymmetricKeyCache.get (   self,
  repo,
  toplevel 
)

Definition at line 46 of file encryption.py.

00046 
00047     def get(self, repo, toplevel):
00048         if repo in self.repos and toplevel in self.repos[repo]:
00049             return self.repos[repo][toplevel]
00050         return None
        
def obnamlib.encryption.SymmetricKeyCache.put (   self,
  repo,
  toplevel,
  key 
)

Definition at line 51 of file encryption.py.

00051 
00052     def put(self, repo, toplevel, key):
00053         if repo not in self.repos:
00054             self.repos[repo] = {}
00055         self.repos[repo][toplevel] = key
        

Member Data Documentation

Definition at line 57 of file encryption.py.


The documentation for this class was generated from the following file: