Class ImageUtils

java.lang.Object
io.skodjob.testframe.utils.ImageUtils

public final class ImageUtils extends Object
Class containing methods for handling images
  • Method Details

    • changeRegistry

      public static String changeRegistry(String image, String newRegistry)
      Method that, for specified , replaces the registry, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newRegistry - desired registry
      Returns:
      updated image based on the parameters
    • changeRegistryAndOrg

      public static String changeRegistryAndOrg(String image, String newRegistry, String newOrg)
      Method that, for specified , replaces the registry and organization, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newRegistry - desired registry
      newOrg - desired organization
      Returns:
      updated image based on the parameters
    • changeRegistryAndTag

      public static String changeRegistryAndTag(String image, String newRegistry, String newTag)
      Method that, for specified , replaces the registry and tag, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newRegistry - desired registry
      newTag - desired tag
      Returns:
      updated image based on the parameters
    • changeOrg

      public static String changeOrg(String image, String newOrg)
      Method that, for specified , replaces the organization, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newOrg - desired organization
      Returns:
      updated image based on the parameters
    • changeOrgAndTag

      public static String changeOrgAndTag(String image, String newOrg, String newTag)
      Method that, for specified , replaces the organization and tag, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newOrg - desired organization
      newTag - desired tag
      Returns:
      updated image based on the parameters
    • changeTag

      public static String changeTag(String image, String newTag)
      Method that, for specified , replaces the tag, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newTag - desired tag
      Returns:
      updated image based on the parameters
    • changeRegistryOrgAndTag

      public static String changeRegistryOrgAndTag(String image, String newRegistry, String newOrg, String newTag)
      Method that, for specified , replaces the registry, organization, and tag, based on the parameters.
      Parameters:
      image - image that should be replaced with new values
      newRegistry - desired registry
      newOrg - desired organization
      newTag - desired tag
      Returns:
      updated image based on the parameters