usr/lib/python3.6/site-packages/tuned/profiles/factory.py000064400000000215147205305230017375 0ustar00import tuned.profiles.profile class Factory(object): def create(self, name, config): return tuned.profiles.profile.Profile(name, config) usr/lib/python3.6/site-packages/tuned/storage/factory.py000064400000000546147205350710017230 0ustar00from . import interfaces from . import storage class Factory(interfaces.Factory): __slots__ = ["_storage_provider"] def __init__(self, storage_provider): self._storage_provider = storage_provider @property def provider(self): return self._storage_provider def create(self, namespace): return storage.Storage(self._storage_provider, namespace)