Class ContainerResource


  • public class ContainerResource
    extends java.lang.Object
    Helper class for K8S container Resource.
    Since:
    0.20
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String IMAGE_NAME_KEY
      Key for the container image name.
      static java.lang.String IMAGE_TAG_KEY
      Key for the container image tag.
      static java.lang.String NAME_KEY
      Key for the container name.
      static java.lang.String TYPE
      Kubernetes resources key that represents a type of the resource.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ContainerResource()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Resource create​(java.lang.String name, java.lang.String imageName, java.lang.String imageTag)
      Returns a Resource that describes a container.
      (package private) static Resource detect()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TYPE

        public static final java.lang.String TYPE
        Kubernetes resources key that represents a type of the resource.
        Since:
        0.20
        See Also:
        Constant Field Values
      • NAME_KEY

        public static final java.lang.String NAME_KEY
        Key for the container name.
        Since:
        0.20
        See Also:
        Constant Field Values
      • IMAGE_NAME_KEY

        public static final java.lang.String IMAGE_NAME_KEY
        Key for the container image name.
        Since:
        0.20
        See Also:
        Constant Field Values
      • IMAGE_TAG_KEY

        public static final java.lang.String IMAGE_TAG_KEY
        Key for the container image tag.
        Since:
        0.20
        See Also:
        Constant Field Values
    • Constructor Detail

      • ContainerResource

        private ContainerResource()
    • Method Detail

      • create

        public static Resource create​(java.lang.String name,
                                      java.lang.String imageName,
                                      java.lang.String imageTag)
        Returns a Resource that describes a container.
        Parameters:
        name - the container name.
        imageName - the container image name.
        imageTag - the container image tag.
        Returns:
        a Resource that describes a k8s container.
        Since:
        0.20