blob: 22ca143ac2413ae2e090de46878fdf771b7078f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
import logging
from custodia.log import CustodiaPlugin
logger = logging.getLogger(__name__)
class CSStoreError(Exception):
def __init__(self, message=None):
logger.debug(message)
super(CSStoreError, self).__init__(message)
class CSStoreExists(Exception):
def __init__(self, message=None):
logger.debug(message)
super(CSStoreExists, self).__init__(message)
class CSStore(CustodiaPlugin):
def get(self, key):
raise NotImplementedError
def set(self, key, value, replace=False):
raise NotImplementedError
def span(self, key):
raise NotImplementedError
def list(self, keyfilter=None):
raise NotImplementedError
def cut(self, key):
raise NotImplementedError
|