Lines Matching defs:api
50 import pkg.client.api as api
64 from pkg.client.api import (IMG_TYPE_ENTIRE, IMG_TYPE_PARTIAL,
621 pkg_list = api.ImageInterface.LIST_INSTALLED
624 pkg_list = api.ImageInterface.LIST_ALL
626 pkg_list = api.ImageInterface.LIST_INSTALLED_NEWEST
628 pkg_list = api.ImageInterface.LIST_NEWEST
630 pkg_list = api.ImageInterface.LIST_UPGRADABLE
673 [(api.PackageInfo.INSTALLED, "installed")],
674 [(api.PackageInfo.FROZEN, "frozen")],
676 (api.PackageInfo.OBSOLETE, "obsolete"),
677 (api.PackageInfo.RENAMED, "renamed")
769 elif pkg_list == api.ImageInterface.LIST_ALL or \
770 pkg_list == api.ImageInterface.LIST_NEWEST:
775 elif pkg_list == api.ImageInterface.LIST_INSTALLED_NEWEST:
783 elif pkg_list == api.ImageInterface.LIST_UPGRADABLE:
790 api.ImageInterface.LIST_INSTALLED,
878 imgdir, provided_image_dir = api.get_default_image_root(
896 return api.ImageInterface(imgdir, CLIENT_API_VERSION,
1166 # All the api interface functions that we invoke have some
1336 plan = api.PlanDescription()
1377 """Do something that involves the api.
1381 assignment and will be passed directly on to the api
1411 # normal api behavior which doesn't prevent an api
2265 info_needed = api.PackageInfo.ALL_OPTIONS
2267 info_needed = api.PackageInfo.ALL_OPTIONS - \
2268 frozenset([api.PackageInfo.LICENSES])
2269 info_needed -= api.PackageInfo.ACTION_OPTIONS
2270 info_needed |= frozenset([api.PackageInfo.DEPENDENCIES])
2285 pis = ret[api.ImageInterface.INFO_FOUND]
2286 notfound = ret[api.ImageInterface.INFO_MISSING]
2287 illegals = ret[api.ImageInterface.INFO_ILLEGALS]
2313 if api.PackageInfo.INSTALLED in pi.states:
2315 elif api.PackageInfo.UNSUPPORTED in pi.states:
2321 if api.PackageInfo.OBSOLETE in pi.states:
2324 elif api.PackageInfo.RENAMED in pi.states:
2327 if api.PackageInfo.FROZEN in pi.states:
2372 if api.PackageInfo.RENAMED in pi.states:
3111 "{api}.").format(client=__e.received_version,
3112 api=__e.expected_version), errors_json=errors_json)
3215 # We will always reset api instance on exception.