<reponame>shield-h2020/trust-monitor<gh_stars>1-10
import logging

logger = logging.getLogger('driver')


class InformationDigest():
    def __init__(self):
        self.list_not_found = []
        self.list_fake_lib = []
        self.n_digests_ok = 0
        self.n_digests_not_found = 0
        self.n_digests_fake_lib = 0
        self.list_containers = ""
        self.list_prop_not_found = []
        # packages stats
        self.host = ""
        self.n_packages_ok = 0
        self.n_packages_security = 0
        self.n_packages_not_security = 0
        self.n_packages_unknown = 0

    def __del__(self):
        logger.debug('Delete information Digest object')
        del self.list_not_found
        del self.list_fake_lib
        del self.list_containers
        del self.host
        del self.list_prop_not_found
        del self.n_digests_not_found
        del self.n_digests_ok
        del self.n_digests_fake_lib
        del self.n_packages_ok
        del self.n_packages_security
        del self.n_packages_not_security
        del self.n_packages_unknown


class MapDigest():
    mapDigest = {}
