Class ProgressMessage

    • Field Detail

      • STATUS_DIGEST_PREFIX_16

        private static final java.lang.String STATUS_DIGEST_PREFIX_16
        See Also:
        Constant Field Values
      • STATUS_DIGEST_PREFIX_18

        private static final java.lang.String STATUS_DIGEST_PREFIX_18
        See Also:
        Constant Field Values
      • STATUS_SIZE_PREFIX_18

        private static final java.lang.String STATUS_SIZE_PREFIX_18
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProgressMessage

        public ProgressMessage()
    • Method Detail

      • id

        @Nullable
        public abstract java.lang.String id()
      • status

        @Nullable
        public abstract java.lang.String status()
      • stream

        @Nullable
        public abstract java.lang.String stream()
      • error

        @Nullable
        public abstract java.lang.String error()
      • progress

        @Nullable
        public abstract java.lang.String progress()
      • progressDetail

        @Nullable
        public abstract ProgressDetail progressDetail()
      • create

        static ProgressMessage create​(java.lang.String id,
                                      java.lang.String status,
                                      java.lang.String stream,
                                      java.lang.String error,
                                      java.lang.String progress,
                                      ProgressDetail progressDetail)
      • buildImageId

        public java.lang.String buildImageId()
        Checks if the stream field contains a string a like "Successfully built 2d6e00052167", and if so, returns the image id. Otherwise null is returned. This string is expected when an image is built successfully.
        Returns:
        The image id if this is a build success message, otherwise null.
      • digest

        public java.lang.String digest()