117. KeyManager

Manages GPG keys in the package manager

117.1. Authors

  • Ladislav SlezĂĄk <lslezak@novell.com>

117.2. Summary of Module Globals

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

    117.3. Global Functions

    117.3.1. DeleteKey

    Delete the key from the package manager

    Function parameters

    • string key_id

    Return value

    • boolean - true on success

    117.3.2. GetKeys

    Return the current keys.

    Return value

    • list<map<string,any> > - list of known GPG keys ($[ "id" : string, "name" : string, "trusted" : boolean ])

    117.3.3. ImportFromFile

    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...)

    117.3.4. Modified

    Has been something changed?

    Return value

    • boolean - true if something has been changed

    117.3.5. 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!

    Return value

    • boolean - true on success

    117.3.6. Reset

    Reset the internal state of the module. The current configuration and all changes are deleted.

    Return value

    • void

    117.3.7. SearchGPGKey

    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

    117.3.8. Write

    Apply the changes, update the current status

    Return value

    • boolean - true on success

    117.4. Global Variables

    117.5. Module Requirements

    117.5.1. Module Imports

    • Directory
    • Report
    • String

    117.5.2. Module Includes