Package entropy :: Package client :: Package interfaces :: Module settings :: Class ClientSystemSettingsPlugin

Class ClientSystemSettingsPlugin

source code


Instance Methods
None
__init__(self, helper_interface)
SystemSettingsPlugin constructor.
source code
 
masking_validation_parser(self, system_settings_instance) source code
dict
repositories_parser(self, sys_settings_instance)
Parser that generates repository settings metadata.
source code
 
misc_parser(self, sys_settings_instance)
Parses Entropy client system configuration file.
source code
None
post_setup(self, system_settings_instance)
Reimplemented from SystemSettingsPlugin.
source code
 
packages_configuration_hash(self)
Return a SHA1 hash of the current packages configuration.
source code

Inherited from core.settings.plugins.skel.SystemSettingsPlugin: add_parser, get_id, get_updatable_configuration_files, parse

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
client_conf_path()
Return current client.conf path, this takes into account the current configuration files directory path (which is affected by "root" path changes [default: /])
source code
Class Variables
  ID = 'client_plugin'

Inherited from core.settings.plugins.skel.SystemSettingsPlugin: BASE_PLUGIN_API_VERSION

Properties

Inherited from object: __class__

Method Details

__init__(self, helper_interface)
(Constructor)

source code 

SystemSettingsPlugin constructor.

Parameters:
  • plugin_id - plugin identifier, must be unique
  • helper_interface - any Python object that could be of help to your parsers
Returns: None
None
Overrides: object.__init__
(inherited documentation)

repositories_parser(self, sys_settings_instance)

source code 

Parser that generates repository settings metadata.

Parameters:
  • sys_settings_instance (instance of SystemSettings) - SystemSettings instance
Returns: dict
parsed metadata

misc_parser(self, sys_settings_instance)

source code 

Parses Entropy client system configuration file.

@return dict data

post_setup(self, system_settings_instance)

source code 

Reimplemented from SystemSettingsPlugin.

Parameters:
  • system_settings_instance - SystemSettings instance
Returns: None
None
Overrides: core.settings.plugins.skel.SystemSettingsPlugin.post_setup

packages_configuration_hash(self)

source code 

Return a SHA1 hash of the current packages configuration. This includes masking, unmasking, keywording of all the configured repositories.