public class TarImage
extends java.lang.Object
Usage example:
TarImage tarImage = TarImage.at(Paths.get("image.tar"))
.named("myimage");
Modifier and Type | Method and Description |
---|---|
static TarImage |
at(java.nio.file.Path path)
Constructs a
TarImage with the specified path. |
TarImage |
named(ImageReference imageReference)
Sets the name of the image.
|
TarImage |
named(java.lang.String imageReference)
Sets the name of the image.
|
public static TarImage at(java.nio.file.Path path)
TarImage
with the specified path.path
- the path to the tarball archiveTarImage
public TarImage named(ImageReference imageReference)
imageReference
- the image referencepublic TarImage named(java.lang.String imageReference) throws InvalidImageReferenceException
imageReference
- the image referenceInvalidImageReferenceException
- if imageReference
is not a valid image reference