def __init__()

in services/ui_backend_service/plugins/plugin.py [0:0]


    def __init__(self, identifier: str, repository: str, ref: str = None, parameters: dict = {}, path: str = None, auth: dict = {}):
        self.logger = logging.getLogger("Plugin:{}:{}".format(identifier, path))

        self.identifier = identifier
        self.repository = repository
        self.ref = ref
        self.parameters = parameters

        # Base path for plugin folder
        self.basepath = os.path.join(installed_plugins_base_dir, INSTALLED_PLUGINS_DIR, self.identifier)
        self.logger.info("self.basepath: {}".format(self.basepath))

        # Path to plugin files such as manifest.json.
        # Differs from root path in case of multi-plugin repositories.
        self.filepath = os.path.join(self.basepath, path or "")

        self.credentials = _get_credentials(auth)
        self.callbacks = pygit2.RemoteCallbacks(credentials=self.credentials) if self.credentials else None