public class DockerTraceabilityHelper extends Object
| Constructor and Description |
|---|
DockerTraceabilityHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDate(Date date)
Formats the time to the Docker-standard format.
|
static String |
formatTime(long time)
Formats the time to the Docker-standard format.
|
static String |
getContainerHash(String containerId) |
static String |
getImageHash(String imageId) |
static DockerContainerRecord |
getLastContainerRecord(String containerId)
Retrieves the last deployment record for the specified container.
|
static com.github.dockerjava.api.command.InspectImageResponse |
getLastInspectImageResponse(String imageId)
Retrieves the last
InspectImageResponse for the specified image. |
static DockerTraceabilityReport |
getLastReport(String containerId)
Retrieves the last trace report for the specified container.
|
static DockerEventsAction |
getTraceabilityAction()
Gets the
DockerEventsAction of Jenkins instance. |
static hudson.model.Fingerprint |
make(String containerId)
Get or create a fingerprint by the specified container ID.
|
static hudson.model.Fingerprint |
of(String containerId)
Get a fingerprint by the specified container ID.
|
static hudson.model.Fingerprint |
ofValidated(String containerId)
Get a fingerprint by the specified container ID.
|
@CheckForNull
public static hudson.model.Fingerprint ofValidated(@Nonnull
String containerId)
throws IOException
of(java.lang.String) to get a default behavior.containerId - Full 64-symbol container id. Short forms are not supported.IOException - Fingerprint loading error@CheckForNull
public static hudson.model.Fingerprint of(@Nonnull
String containerId)
IOExceptions on fingerprint loading.containerId - Full 64-symbol container id. Short forms are not supported.@CheckForNull
public static hudson.model.Fingerprint make(@Nonnull
String containerId)
throws IOException
containerId - Full 64-symbol container id. Short forms are not supported.IOException - Fingerprint loading error@CheckForNull public static DockerContainerRecord getLastContainerRecord(@Nonnull String containerId)
containerId - Container Id@CheckForNull public static DockerTraceabilityReport getLastReport(@Nonnull String containerId)
containerId - Container Id@CheckForNull
public static com.github.dockerjava.api.command.InspectImageResponse getLastInspectImageResponse(@Nonnull
String imageId)
InspectImageResponse for the specified image.imageId - Image Id@CheckForNull public static DockerEventsAction getTraceabilityAction()
DockerEventsAction of Jenkins instance.@Nonnull public static String formatTime(long time)
time - Time to be convertedyyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'
Up to nanoseconds, but actually the last 6 digits are null in the current implementation.@Nonnull public static String formatDate(Date date)
date - Date to be convertedyyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'
Up to nanoseconds, but actually the last 6 digits are null in the current implementation.Copyright © 2015. All Rights Reserved.