Manages GPG keys in the package manager
List of Global Functions
DeleteKey - Delete the key from the package manager
GetKeys - Return the current keys.
ImportFromFile - Import key from a file
Modified - Has been something changed?
Read - Read the current configuration from the package manager. The previous changes are lost (@see Reset). The target system of the package manager must be initialized before reading GPG keys!
Reset - Reset the internal state of the module. The current configuration and all changes are deleted.
SearchGPGKey - Search a GPG key in the known keys
Write - Apply the changes, update the current status
List of Global Variables
Delete the key from the package manager
Function parameters
string key_id
Return value
boolean - true on success
Return the current keys.
Return value
list<map<string,any> > - list of known GPG keys ($[ "id" : string, "name" : string, "trusted" : boolean ])
Import key from a file
Function parameters
string file
boolean trusted
Return value
map<string,any> - map with the key, nil when import fails (invalid key, not existing file, already imported key...)
Has been something changed?
Return value
boolean - true if something has been changed
Read the current configuration from the package manager. The previous changes are lost (@see Reset). The target system of the package manager must be initialized before reading GPG keys!
Return value
boolean - true on success
Reset the internal state of the module. The current configuration and all changes are deleted.
Return value
void
Search a GPG key in the known keys
Function parameters
string key_id
Return value
map<string,any> - Data about the key or nil if the key was not found