Ejemplo n.º 1
0
Archivo: run.py Proyecto: xaleeks/tern
def analyze(image_obj, args, dfile_lock=False, dfobj=None):
    '''Analyze the image object either using the default method or the extended
    method'''
    if not dfile_lock and args.extend:
        run_extension(image_obj, args.extend)
    else:
        analyze_docker_image(image_obj, args.redo, dfile_lock, dfobj)
Ejemplo n.º 2
0
def analyze(image_obj, options):
    """Either analyze a container image using the default method or pass
    analysis to an external tool"""
    if options.extend:
        passthrough.run_extension(image_obj, options.extend, options.redo)
    else:
        default_analyze(image_obj, options)
Ejemplo n.º 3
0
def analyze(image_obj, redo=False, driver=None, extension=None):
    """Either analyze a container image using the default method or pass
    analysis to an external tool"""
    if extension:
        passthrough.run_extension(image_obj, extension, redo)
    else:
        default_analyze(image_obj, redo, driver)
Ejemplo n.º 4
0
def analyze(image_obj, args, is_dockerfile=False):
    '''Analyze the image object either using the default method or the extended
    method'''
    if args.extend:
        run_extension(image_obj, args.extend)
    else:
        analyze_docker_image(image_obj, args.redo, is_dockerfile)