Class SaharaImageServiceImpl

    • Constructor Detail

      • SaharaImageServiceImpl

        public SaharaImageServiceImpl()
    • Method Detail

      • list

        public List<? extends Image> list​(String... tags)
        List images with specified tag(s)
        Specified by:
        list in interface SaharaImageService
        Parameters:
        tags - one or more tags
        Returns:
        list of images or empty
      • get

        public Image get​(String imageId)
        Get an image by ID
        Specified by:
        get in interface SaharaImageService
        Parameters:
        imageId - the image identifier
        Returns:
        the image or null if not found
      • register

        public Image register​(String imageId,
                              String username,
                              String description)
        Register a new image into Sahara image registry
        Specified by:
        register in interface SaharaImageService
        Parameters:
        imageId - the image to register
        username - the username
        description - the description
        Returns:
        the registered image
      • unregister

        public ActionResponse unregister​(String imageId)
        Unregister the specified image from Sahara image registry
        Specified by:
        unregister in interface SaharaImageService
        Parameters:
        imageId - the image identifier
        Returns:
        the action response