public class DockerInspectImageFacet
extends org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintFacet
Fingerprint
s.
Stores only the last available data in order to display summaries in the web
interface. The consistency of the container info in data
is not
maintained.Constructor and Description |
---|
DockerInspectImageFacet(hudson.model.Fingerprint fingerprint,
long timestamp,
org.jenkinsci.plugins.docker.traceability.dockerjava.api.command.InspectImageResponse data,
String imageName) |
Modifier and Type | Method and Description |
---|---|
org.jenkinsci.plugins.docker.traceability.dockerjava.api.command.InspectImageResponse |
getData() |
String |
getImageName()
Gets the image name.
|
long |
getReportTimeInSeconds()
Time, when the latest report has been submitted.
|
static void |
updateData(hudson.model.Fingerprint fingerprint,
long reportTimeInSeconds,
org.jenkinsci.plugins.docker.traceability.dockerjava.api.command.InspectImageResponse data,
String imageName)
Updates the facet by a new report.
|
@Nonnull public org.jenkinsci.plugins.docker.traceability.dockerjava.api.command.InspectImageResponse getData()
@CheckForNull public String getImageName()
public long getReportTimeInSeconds()
public static void updateData(@Nonnull hudson.model.Fingerprint fingerprint, long reportTimeInSeconds, @Nonnull org.jenkinsci.plugins.docker.traceability.dockerjava.api.command.InspectImageResponse data, @CheckForNull String imageName) throws IOException
reportTimeInSeconds
is
greater than the submitted one,fingerprint
- Fingerprint to be updatedreportTimeInSeconds
- Report generation time.
The time is specified in seconds since January 1, 1970, 00:00:00 GMTdata
- Report data from "docker inspect image" outputimageName
- Optional name of the imageIOException
- Fingerprint save errorCopyright © 2015–2016. All rights reserved.