Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler body Pass TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler body Pass Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str Str body Assign NameStore Str If NameLoad body Assign NameStore Str Assign NameStore ListLoad Str NameLoad NameLoad NameLoad Str Call NameLoad NameLoad If NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad If NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body For NameStore Call NameLoad Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Num Continue orelse If CompareEq Call AttributeLoad NameLoad attr Str body Print Call AttributeLoad Str attr NameLoad Return orelse If CompareEq Call AttributeLoad NameLoad attr Str body Print Call AttributeLoad Str attr NameLoad Return orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Str Str Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str NameStore body Expr Call AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A unittest N/A uuid N/A shutil N/A time N/A os alaudacli cmd_parser cmd_processor service auth alaudacli.service Service ServiceTest N/A N/A unittest TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A N/A N/A service Service remove test-hello N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A service Service remove test-mysql N/A N/A N/A N/A N/A N/A api_endpoint token username N/A N/A auth load_token N/A N/A .io api_endpoint N/A N/A N/A cls registry index.alauda.io N/A N/A N/A cls registry index.alauda.cn N/A classmethod _create_service N/A N/A self name image port start volume envvar link N/A False N/A N/A cmd create N/A start N/A N/A cmd run N/A argv N/A service cmd name image -p N/A str port N/A volume N/A N/A argv N/A -v volume N/A envvar N/A N/A argv N/A -e envvar N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _wait_for_service N/A N/A self name timeout_in_seconds N/A 60 N/A N/A i N/A range 0 timeout_in_seconds N/A N/A service N/A N/A Service fetch name N/A N/A N/A N/A service get_state Deploying N/A N/A N/A N/A time sleep 1 N/A N/A N/A N/A N/A N/A service get_state Running N/A N/A N/A N/A Service {0} is running format name N/A N/A N/A N/A N/A N/A service get_state Stopped N/A N/A N/A N/A Service {0} is not running format name N/A N/A N/A N/A Exception N/A N/A Service {0} failed to deploy format name N/A N/A Exception N/A N/A Timed out waiting for service {0} format name N/A _start_service N/A N/A self name N/A N/A N/A argv N/A service start name N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A N/A N/A self _wait_for_service test-hello N/A _list_services N/A N/A self N/A N/A N/A argv N/A service ps N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _inspect_service N/A N/A self name N/A N/A N/A argv N/A service inspect name N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _get_service_logs N/A N/A self name N/A N/A N/A argv N/A service logs name N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _scale_service N/A N/A self name target_num_instances N/A N/A N/A argv N/A service scale N/A N/A {0}={1} format name target_num_instances N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _stop_service N/A N/A self name N/A N/A N/A argv N/A service stop name N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _remove_service N/A N/A self name N/A N/A N/A argv N/A service rm name N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _enable_autoscaling N/A N/A self name config N/A N/A N/A argv N/A service enable-autoscaling name -f config N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A _disable_autoscaling N/A N/A self name N/A N/A N/A argv N/A service disable-autoscaling name N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A test_stateless_service N/A N/A self N/A N/A N/A name test-hello N/A image N/A N/A self registry /alauda/hello-world N/A N/A N/A self _create_service name image 80 N/A N/A N/A self _wait_for_service name N/A N/A N/A self _start_service name N/A N/A N/A self _list_services N/A N/A N/A self _inspect_service name N/A N/A N/A self _get_service_logs name N/A N/A N/A self _scale_service name 2 N/A N/A N/A self _wait_for_service name N/A N/A N/A self _enable_autoscaling name clitests/auto-scaling.cfg N/A N/A N/A self _wait_for_service name N/A N/A N/A self _disable_autoscaling name N/A N/A N/A self _wait_for_service name N/A N/A N/A self _stop_service name N/A N/A N/A self _wait_for_service name N/A N/A N/A self _remove_service name N/A test_stateful_service N/A N/A self N/A N/A N/A name test-mysql N/A image N/A N/A self registry /alauda/mysql N/A N/A N/A self _create_service name image 3306 True volume /var/lib/mysql:10 envvar MYSQL_ROOT_PASSWORD=root N/A N/A N/A self _wait_for_service name N/A N/A N/A self _inspect_service name N/A N/A N/A self _stop_service name N/A N/A N/A self _wait_for_service name N/A N/A N/A self _remove_service name N/A test_service_linking N/A N/A self N/A N/A N/A db test-mysql N/A db_image N/A N/A self registry /alauda/mysql N/A web test-hello N/A web_image N/A N/A self registry /alauda/hello-world N/A N/A N/A self _create_service db db_image 3306 True volume /var/lib/mysql:10 envvar MYSQL_ROOT_PASSWORD=root N/A N/A N/A self _wait_for_service db N/A N/A N/A self _create_service web web_image 80 link test-mysql:db N/A N/A N/A self _wait_for_service web N/A N/A N/A self _remove_service web N/A N/A N/A self _remove_service db N/A N/A BuildTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self repo_name fileupload-test N/A N/A self namespace mathildedev N/A N/A self source_path N/A N/A /tmp/alaudacli/{} format N/A N/A uuid uuid4 N/A N/A N/A os makedirs N/A self source_path N/A N/A open N/A N/A N/A os path join N/A self source_path Dockerfile w f N/A N/A N/A N/A f writelines N/A FROM ubuntu:14.04
 CMD ["echo hello"]
 N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self source_path N/A test_create_build N/A N/A self N/A N/A N/A argv N/A build create -p N/A self source_path -rn N/A self repo_name -n N/A self namespace -t latest N/A args N/A N/A cmd_parser parse_cmds argv N/A N/A N/A cmd_processor process_cmds args N/A N/A