Common widget manipulation, TSIG keys management widget |
modules/CWMTsigKeys.ycp |
Routines for management of TSIG keys | |
|
|
This module has an unstable interface. |
Currently configured TSIG keys Each entry is a map with keys "filename" and "key"
Filenames of the files that contained deleted TSIG keys
Filenames of the new added TSIG keys
Redraw the table of DDNS keys
Get the file that contains the specified key
- Parameters:
-
key string key ID
- Return value:
-
file containing the key
Remove file with all TSIG keys it contains
- Parameters:
-
filename string filename of the file with the TSIG keys
Remove file containing specified TSIG key
- Parameters:
-
key string key ID
Add new file with TSIG key
- Parameters:
-
filename string filename of the file with the TSIG key
Remove leading and trailibg blanks and quotes from file name
- Parameters:
-
filename string file name
- Return value:
-
file name without leading/trailing quotes and blanks
Analyze file that may contain TSIG keys
- Parameters:
-
filename string filename of the file that may contain TSIG keys
- Return value:
-
a list of all TSIG key IDs in the file
Remove all 3 files holding the TSIG key data
- Parameters:
-
main string filename of the main file
Transformate the list of files to the list of TSIG key description maps
- Parameters:
-
filenames a list of file names of the TSIG keys
- Return value:
-
a list of TSIG key describing maps
Get all TSIG keys that present in the files
- Parameters:
-
filenames
- Return value:
-
a list of all TSIG key IDs
Init function of the widget
- Parameters:
-
widget key strnig the widget key
Handle function of the widget
- Parameters:
-
widget key strnig the widget key event map event to be handled
- Return value:
-
for wizard sequencer or nil
Store function of the widget
- Parameters:
-
widget key strnig the widget key event map that caused widget data storing
Store function of the widget
- Parameters:
-
key strnig the widget key
Handle function of the widget
- Parameters:
-
key strnig the widget key event map event to be handled
- Return value:
-
for wizard sequencer or nil
Store function of the widget
- Parameters:
-
key strnig the widget key event map that caused widget data storing
Get the widget description map
- Parameters:
-
settings a map of all parameters needed to create the widget properly "get_keys_info" : map
() -- function for getting information about TSIG keys. Return map should contain: - "removed_files" : list -- files that have been removed - "new_files" : list -- files that have been added - "tsig_keys" : list
- Return value:
-
a map the widget description map