Module ImportFrom alias alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias identifier TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword TupleLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Dict Str Str Dict Dict For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call NameLoad Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str ListLoad keyword Call AttributeLoad NameLoad attr Str ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad Str keyword Str keyword NameLoad keyword Dict Str Str Str Str Str Str Str Str Str Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Expr Call AttributeLoad Call NameLoad attr decorator_list
N/A __future__ print_function absolute_import unicode_literals division N/A argparse N/A sys N/A logging N/A yaml diu.merge merge diu.updater ContainerSet Updater docker Client DockerClient N/A N/A colorlog ColoredFormatter N/A N/A N/A ImportError N/A N/A ColoredFormatter None Application N/A object N/A N/A 
    The docker image updater application.
     __init__ N/A N/A self args N/A None N/A N/A 
        :param args:
            Program arguments. If not supplied, will use sys.argv
         N/A N/A self logger N/A N/A logging getLogger N/A N/A self __class__ __name__ N/A N/A self parser N/A N/A self _create_parser N/A N/A self args N/A N/A N/A self parser parse_args args args N/A N/A N/A self args debug N/A N/A N/A N/A N/A N/A logging getLogger setLevel N/A logging DEBUG N/A N/A self containerset N/A N/A N/A N/A N/A self args deprecated_file None N/A N/A N/A N/A N/A self logger warning --file is deprecated, please migrate to using positional arguments instead N/A N/A N/A self _load_config N/A N/A self args deprecated_file N/A N/A N/A N/A self _load_config N/A N/A self args file N/A d N/A DockerClient N/A N/A N/A self config get docker N/A N/A N/A self updater N/A Updater d N/A self containerset N/A _create_parser N/A N/A self N/A N/A N/A 
        Create the argparse argument parser.

        :returns:
            An instance of `argparse.ArgumentParser()`
         N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument -f --file dest deprecated_file metavar FILE default None help deprecated - this flag will be removed in the future N/A N/A N/A parser add_argument --debug action store_true help show debug messages N/A N/A N/A parser add_argument file help configuration file(s) to use nargs * default N/A /etc/docker-image-updater.yml N/A parser N/A _load_config N/A N/A self N/A files N/A N/A 
        Load and parse the given configuration file.

        :param files:
            One or more sets of configuration files to load.
         N/A final_config N/A config watch N/A N/A N/A f files N/A N/A N/A N/A data N/A N/A yaml safe_load N/A open f N/A N/A N/A N/A IOError N/A N/A yaml parser ParserError N/A e N/A N/A N/A print N/A N/A Error loading {f}: {e!s} format f f e e file N/A sys stderr N/A N/A N/A sys exit 1 N/A N/A N/A final_config N/A merge final_config data N/A N/A N/A ValueError N/A e N/A N/A N/A print N/A N/A You have an error in the configuration file {f}: {e!s} format f f e e file N/A sys stderr N/A N/A N/A sys exit 1 N/A N/A self config N/A final_config N/A config N/A N/A key value N/A N/A N/A final_config N/A watch items N/A N/A N/A N/A N/A N/A self _validate_watch_configuration value N/A N/A N/A ValueError N/A e N/A N/A N/A print N/A N/A You have an error in the configuration file {f}: {e!s} format f f e e file N/A sys stderr N/A N/A N/A sys exit 1 N/A N/A N/A N/A self containerset append N/A ContainerSet name key images N/A N/A value get images N/A commands N/A N/A value get commands N/A N/A _validate_watch_configuration N/A N/A self watch N/A N/A N/A 
        Validate the structure of a 'watch' statement.
         N/A N/A N/A isinstance watch dict N/A N/A N/A ValueError Key 'watch' should be a dictionary N/A N/A N/A isinstance N/A N/A watch get images N/A list N/A N/A N/A ValueError Key 'images' should be of type list N/A N/A N/A isinstance N/A N/A watch get commands N/A list N/A N/A N/A ValueError Key 'commands' should be of type list N/A run N/A N/A self N/A N/A N/A 
        Run the application.
         N/A N/A N/A N/A self updater do_updates N/A N/A N/A N/A self updater error_count 0 N/A N/A N/A N/A sys exit 1 N/A N/A setup_logger N/A N/A N/A N/A N/A logger N/A N/A logging getLogger N/A N/A N/A logger setLevel N/A logging INFO N/A console_handler N/A N/A logging StreamHandler N/A sys stdout N/A N/A N/A N/A N/A sys stdout isatty N/A ColoredFormatter None N/A N/A formatter N/A ColoredFormatter %(asctime)s %(log_color)s%(levelname)-8s%(reset)s %(cyan)s%(name)-10s%(reset)s %(white)s%(message)s%(reset)s datefmt %H:%M:%S reset True log_colors N/A DEBUG INFO WARNING ERROR CRITICAL blue green yellow red red N/A N/A formatter N/A N/A logging Formatter %(asctime)s %(levelname)-8s %(name)-10s %(message)s datefmt %H:%M:%S N/A N/A N/A console_handler setFormatter formatter N/A N/A N/A logger addHandler console_handler N/A main N/A N/A N/A N/A N/A N/A setup_logger N/A N/A N/A N/A Application run N/A