Lines Matching defs:image

80 import pkg.client.image as image
117 IMG_TYPE_NONE = imgtypes.IMG_NONE # No image.
118 IMG_TYPE_ENTIRE = imgtypes.IMG_ENTIRE # Full image ('/').
235 # if f() acquired the image
243 # if f() acquired the image lock, drop it
254 or uninstall packages, or update an image. First, a gen_plan_* method
297 'img_path' is the absolute path to an existing image or to a
298 path from which to start looking for an image. To control this
315 attempt to find a usable image starting from the specified
317 If set to True, an image must exist at the location indicated
347 # The image's History object will use client_name from
371 self._img = image.Image(img_path,
376 # Store final image path.
378 elif isinstance(img_path, image.Image):
380 # until the image api is complete.
421 """Private helper function to change image to use alternate
424 # When using alternate package sources with the image, the
426 # by the image and the alternate sources.
440 "the API should wait until the image interface can be locked if "
448 """The list of excludes for the image."""
459 """Returns the IMG_TYPE constant for the image's type."""
466 """A boolean indicating whether the image to be modified is
472 """A boolean value indicating whether the image is a zone."""
477 """A boolean indicating whether the image to be modified is
478 the active BE for the system's root image."""
496 """A path to the image planning directory."""
503 """A datetime object representing when the image's metadata was
512 # tell the progress tracker about this image's name
573 """The absolute pathname of the filesystem root of the image.
624 # If image format update is needed to perform refresh,
628 # before the format of an image is updated. Yes, this
632 "image rooted at {0} must have its format updated "
705 # If image policy requires a new BE or the plan requires
804 mediations that exist only in the image configuration.
860 Return all facets set in the image and all
864 Return only the facets set in the image.
872 image or found in a package should be included. Ignored for
880 # Include all facets set in image.
883 # Don't include any set only in image.
917 # The image's Facets dictionary will return
919 # explicitly set in the image (wildcards or
950 Return all variants set in the image and all
956 the image and all variants listed in installed
960 Return only the variants set in the image.
965 in the image.
978 image or found in a package should be included. Ignored for
987 # Include all variants set in image.
990 # Don't include any set only in image.
1000 # image or listing possible values for them.
1012 # set in the image) can be
1146 """Returns True if the current image is a solaris image, or an
1147 image which contains the pkg(7) packaging system."""
1174 """Raises an IpkgOutOfDateException if the current image
1335 """Contructs a plan to change the package or linked image
1336 state of an image.
1343 assignment and will be passed directly on to the image
1350 linked image attach/detach interfaces.
1383 # to recurse, so disable a bunch of linked image
1389 # All the image interface functions that we invoke have some
1405 # Lock the current image.
1416 # refresh linked image data from parent image.
1424 # check that linked image pubs are in sync
1431 # If this is an image update then make
1496 # from the child image operation, or None. Eventually
1556 # grab image lock. we don't worry about dropping the image
1587 # allocate an image plan based on the supplied plan
1599 """Private interface to perform publisher check on this image
1607 # check the current image
1615 """If we're a child image, verify that the parent image's
1616 publisher configuration is a subset of the child image's
1620 # grab image lock. we don't worry about dropping the image
1628 # check that linked image pubs are in sync
1639 todo in the parent image. (i.e., if an operation was planned
1714 'pubcheck' indicates that we should skip the child image
1715 publisher check before creating a plan for this image. only
1796 is a list of linked image children names, the requested
1804 linked image children names, those children will be ignored
1809 'li_parent_sync' if the current image is a child image, this
1810 flag controls whether the linked image parent metadata will be
1900 Constructs a plan to sync the current image with its
1901 linked image constraints. Once an operation has been planned,
1910 images, only sync the linked image metadata from the parent
1911 image. If this options is True, 'li_parent_sync' must also be
1918 the image in sync with its parent.
1924 # we should only be invoked on a child image.
1950 Attach a parent image and sync the packages in the current
1951 image with the new parent. Once an operation has been
1960 image.
1962 'li_path' a path to the parent image.
1964 'allow_relink' allows re-linking of an image that is already a
1965 linked image child. If this option is True we'll overwrite
1966 all existing linked image metadata.
1968 'li_props' optional linked image properties to apply to the
1969 child image.
2003 Detach from a parent image and remove any constraints
2004 package from this image. Once an operation has been planned,
2148 facets for the image. Once an operation has been planned, it
2235 Plan to remove non-editable files and hardlinks from an image.
2256 image. Once an operation has been planned, it may be executed by
2316 """Attach an image as a child to the current image (the
2317 current image will become a parent image. This operation
2318 results in attempting to sync the child image with the parent
2319 image.
2321 'lin' is the name of the child image
2323 'li_path' is the path to the child image
2325 'li_props' optional linked image properties to apply to the
2326 child image.
2329 child image that is already linked (the child may already
2330 be a child or a parent image).
2333 image even if the specified linked image type doesn't support
2337 image metadata and not actually try to sync the child image.
2340 updates during the child image sync.
2370 """Detach one or more children from the current image. This
2374 'li_list' a list of linked image name objects which specified
2382 image name objects and the values are the result of the
2383 specified operation on the associated child image. The result
2405 """Sync one or more children of the current image.
2430 """Audit one or more children of the current image to see if
2431 they are in sync with this image.
2450 """If the current image is a child image, this function
2451 audits the current image to see if it's in sync with it's
2461 # refresh linked image data from parent image.
2471 """Indicates whether the current image is a child image."""
2475 """Indicates whether the current image is a parent image."""
2637 """If the current image is a child image, this function
2638 returns a linked image name object which represents the name
2639 of the current image."""
2643 """Return a dictionary which represents the linked image
2644 properties associated with a linked image.
2646 'lin' is the name of the child image. If lin is None then
2647 the current image is assumed to be a linked image and it's
2654 current image. This includes both child and parent images.
2665 """Given a string representing a linked image child name,
2666 returns linked image name object representing the same name.
2674 """Given a list of strings representing linked image child
2675 names, returns a list of linked image name objects
3007 interval period recorded in the image configuration has been
3016 Currently returns an image object, allowing existing code to
3733 this image should be returned.
3943 # directly and not image configuration so
4087 # Perform image arch and zone variant filtering so
4088 # that only packages appropriate for this image are
4165 # image, elide packages that are not for
4293 # Common logic for image and temp repos case.
4585 # Recreate the image object using the path the api
4587 self._img = image.Image(self._img_path,
4681 each query against the installed packages of the image."""
4763 active servers known by the image.
5021 """Add the provided publisher object to the image
5036 """Returns the highest ranked publisher object for the image."""
5083 image.
5382 """Marks the end of an operation to be recorded in image
5395 """Adds an error to the list of errors to be recorded in image
5400 """Marks the start of an operation to be recorded in image
5413 """Parse a linked image name string and return a
5415 liname must correspond to an existing linked image. If
5417 an existing linked image then liname must be a
5418 syntactically valid and fully qualified linked image
5519 """Attempt to update the on-disk format of the image to the
5624 path of the default image root based on current environment given the
5628 image; it is merely the default location a client should use when
5629 initializing an ImageInterface (e.g. '/' is not a valid image on Solaris
5633 to find an image, searching upwards through each parent directory until
5641 # If an image location wasn't explicitly specified, check $PKG_IMAGE in
5648 # If no image location was found in the environment,
5649 # then see if user enabled finding image or if current
5651 # image starting with the working directory.
5656 # If no image directory has been determined based on
5668 """Creates an image at the specified location.
5676 'root' is the absolute path of the directory where the image will
5679 'imgtype' is an IMG_TYPE constant representing the type of image
5682 'is_zone' is a boolean value indicating whether the image being
5689 the image creation process.
5691 'force' is an optional boolean value indicating that if an image
5695 all publishers configured during image creation as mirrors.
5698 all publishers configured during image creation as origins.
5701 for the new image if origins is provided, or to restrict which publisher
5707 'props' is an optional dictionary mapping image property names to values
5708 to be set while creating the image.
5712 image creation. If False, 'repo_uri' cannot be specified and
5718 image and any origins or mirrors will be added to all of those
5744 the image creation process.
5771 # The image object must be created first since transport may be
5773 img = image.Image(root, force=force, imgtype=imgtype,
5927 # Ensure a defunct image isn't left behind.