1
0
mirror of https://github.com/quay/quay.git synced 2026-01-27 18:42:52 +03:00
Files
quay/data/secscan_model/__init__.py
Joseph Schorr d9d6083ad6 Place all security scanner access behind a new data model interface
This is in preparation for the beginning of support for the new API for ClairCore (V4)

Fixes https://issues.redhat.com/browse/PROJQUAY-177
2020-01-29 13:02:14 -05:00

18 lines
418 B
Python

import os
import logging
from data.secscan_model.secscan_v2_model import V2SecurityScanner
logger = logging.getLogger(__name__)
class SecurityScannerModelProxy(object):
def configure(self, app, instance_keys, storage):
self._model = V2SecurityScanner(app, instance_keys, storage)
def __getattr__(self, attr):
return getattr(self._model, attr)
secscan_model = SecurityScannerModelProxy()