update code documentation
This commit is contained in:
parent
4c47e42dee
commit
7082571acf
4 changed files with 87 additions and 16 deletions
|
|
@ -25,18 +25,33 @@ from .config.yamlconfig import YamlConfig
|
|||
|
||||
class IStorage(object):
|
||||
def load(self, what, name, default={}):
|
||||
"""
|
||||
Load data from storage.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def save(self, what, name):
|
||||
"""
|
||||
Write changes in storage on the disk.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def set(self, what, name, *args):
|
||||
"""
|
||||
Set data in a path.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def delete(self, what, name, *args):
|
||||
"""
|
||||
Delete a value or a path.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def get(self, what, name, *args, **kwargs):
|
||||
"""
|
||||
Get a value or a path.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue