This commit is contained in:
Joseph Schorr 2017-06-29 09:43:04 +03:00
parent 1ddb09ac11
commit 27ed3bedcc
5 changed files with 9 additions and 7 deletions

View file

@ -10,6 +10,7 @@ logger = logging.getLogger(__name__)
unscanned_images_gauge = prometheus.create_gauge('unscanned_images',
'Number of images that clair needs to scan.')
def index_images(target_version, analyzer, token=None):
""" Performs security indexing of all images in the database not scanned at the target version.
If a token is provided, scanning will begin where the token indicates it previously completed.