Lines Matching refs:afe
89 def __init__(self, afe, dry_run): argument
90 self._afe = afe
92 self._version_map = afe.get_stable_version_map(self.TYPE)
248 def _create_version_map_handler(image_type, afe, dry_run): argument
249 return _IMAGE_TYPE_HANDLERS[image_type](afe, dry_run)
252 def _requested_mapping_handlers(afe, image_type): argument
269 yield _create_version_map_handler(image_type, afe, True)
272 yield cls(afe, True)
275 def list_all_mappings(afe, image_type): argument
286 for handler in _requested_mapping_handlers(afe, image_type):
293 def list_mapping_by_key(afe, image_type, key): argument
304 for handler in _requested_mapping_handlers(afe, image_type):
329 def set_mapping(afe, image_type, key, version, dry_run): argument
344 handler = _create_version_map_handler(image_type, afe, dry_run)
367 def delete_mapping(afe, image_type, key, dry_run): argument
381 handler = _create_version_map_handler(image_type, afe, dry_run)
414 def _dispatch_command(afe, arguments): argument
417 delete_mapping(afe, arguments.type, arguments.key,
420 list_all_mappings(afe, arguments.type)
422 list_mapping_by_key(afe, arguments.type, arguments.key)
425 set_mapping(afe, arguments.type, arguments.key,
435 afe = frontend.AFE(server=arguments.web)
437 _dispatch_command(afe, arguments)