add some basic logging output to certmaster
[certmaster.git] / certmaster / overlord / highlevel.py
1 ##
2 ## func higher level API interface for overlord side operations
3 ##
4 ## Copyright 2007, Red Hat, Inc
5 ## Michael DeHaan <mdehaan@redhat.com>
6 ## +AUTHORS
7 ##
8 ## This software may be freely redistributed under the terms of the GNU
9 ## general public license.
10 ##
11 ## You should have received a copy of the GNU General Public License
12 ## along with this program; if not, write to the Free Software
13 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
14 ##
15
16 import exceptions
17
18 class HigherLevelObject:
19
20 def __init__(self, client):
21 self.client = client_handle
22
23 def modify(self, key, properties):
24 """
25 Modify or create an entity named key.
26 properties should contain all neccessary fields.
27 """
28 raise exceptions.NotImplementedError
29
30 def remove(self, key):
31 """
32 Remove an entity named key.
33 """
34 raise exceptions.NotImplementedError
35
36 def list(self):
37 """
38 List all objects
39 """
40 raise exceptions.NotImplementedError