Package io.skodjob.testframe.utils
Class ImageUtils
java.lang.Object
io.skodjob.testframe.utils.ImageUtils
Class containing methods for handling images
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringMethod that, for specified , replaces the organization, based on the parameters.static StringchangeOrgAndTag(String image, String newOrg, String newTag) Method that, for specified , replaces the organization and tag, based on the parameters.static StringchangeRegistry(String image, String newRegistry) Method that, for specified , replaces the registry, based on the parameters.static StringchangeRegistryAndOrg(String image, String newRegistry, String newOrg) Method that, for specified , replaces the registry and organization, based on the parameters.static StringchangeRegistryAndTag(String image, String newRegistry, String newTag) Method that, for specified , replaces the registry and tag, based on the parameters.static StringchangeRegistryOrgAndTag(String image, String newRegistry, String newOrg, String newTag) Method that, for specified , replaces the registry, organization, and tag, based on the parameters.static StringMethod that, for specified , replaces the tag, based on the parameters.
-
Method Details
-
changeRegistry
Method that, for specified , replaces the registry, based on the parameters.- Parameters:
image- image that should be replaced with new valuesnewRegistry- desired registry- Returns:
- updated image based on the parameters
-
changeRegistryAndOrg
Method that, for specified , replaces the registry and organization, based on the parameters.- Parameters:
image- image that should be replaced with new valuesnewRegistry- desired registrynewOrg- desired organization- Returns:
- updated image based on the parameters
-
changeRegistryAndTag
Method that, for specified , replaces the registry and tag, based on the parameters.- Parameters:
image- image that should be replaced with new valuesnewRegistry- desired registrynewTag- desired tag- Returns:
- updated image based on the parameters
-
changeOrg
Method that, for specified , replaces the organization, based on the parameters.- Parameters:
image- image that should be replaced with new valuesnewOrg- desired organization- Returns:
- updated image based on the parameters
-
changeOrgAndTag
Method that, for specified , replaces the organization and tag, based on the parameters.- Parameters:
image- image that should be replaced with new valuesnewOrg- desired organizationnewTag- desired tag- Returns:
- updated image based on the parameters
-
changeTag
Method that, for specified , replaces the tag, based on the parameters.- Parameters:
image- image that should be replaced with new valuesnewTag- 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 valuesnewRegistry- desired registrynewOrg- desired organizationnewTag- desired tag- Returns:
- updated image based on the parameters
-