public class CreateImageCmdImpl extends AbstrDockerCmd<CreateImageCmd,CreateImageResponse> implements CreateImageCmd
CreateImageCmd.Exec
execution
Constructor and Description |
---|
CreateImageCmdImpl(CreateImageCmd.Exec exec,
String repository,
InputStream imageStream) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getImageStream() |
String |
getRepository() |
String |
getTag() |
CreateImageCmdImpl |
withImageStream(InputStream imageStream) |
CreateImageCmdImpl |
withRepository(String repository) |
CreateImageCmdImpl |
withTag(String tag) |
close, exec, registryAuth, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exec
public CreateImageCmdImpl(CreateImageCmd.Exec exec, String repository, InputStream imageStream)
repository
- the repository to import toimageStream
- the InputStream of the tar filepublic String getRepository()
getRepository
in interface CreateImageCmd
public String getTag()
getTag
in interface CreateImageCmd
public InputStream getImageStream()
getImageStream
in interface CreateImageCmd
public CreateImageCmdImpl withRepository(String repository)
withRepository
in interface CreateImageCmd
repository
- the repository to import topublic CreateImageCmdImpl withImageStream(InputStream imageStream)
withImageStream
in interface CreateImageCmd
imageStream
- the InputStream of the tar filepublic CreateImageCmdImpl withTag(String tag)
withTag
in interface CreateImageCmd
tag
- any tag for this imageCopyright © 2017. All Rights Reserved.