com.github.dockerjava.core.command
Class CreateImageCmdImpl

java.lang.Object
  extended by com.github.dockerjava.core.command.AbstrDockerCmd<CreateImageCmd,CreateImageResponse>
      extended by com.github.dockerjava.core.command.CreateImageCmdImpl
All Implemented Interfaces:
CreateImageCmd, DockerCmd<CreateImageResponse>

public class CreateImageCmdImpl
extends AbstrDockerCmd<CreateImageCmd,CreateImageResponse>
implements CreateImageCmd

Create an image by importing the given stream of a tar file.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.CreateImageCmd
CreateImageCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
CreateImageCmdImpl(CreateImageCmd.Exec exec, String repository, InputStream imageStream)
           
 
Method Summary
 InputStream getImageStream()
           
 String getRepository()
           
 String getTag()
           
 String toString()
           
 CreateImageCmdImpl withImageStream(InputStream imageStream)
           
 CreateImageCmdImpl withRepository(String repository)
           
 CreateImageCmdImpl withTag(String tag)
           
 
Methods inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
exec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.github.dockerjava.api.command.DockerCmd
exec
 

Constructor Detail

CreateImageCmdImpl

public CreateImageCmdImpl(CreateImageCmd.Exec exec,
                          String repository,
                          InputStream imageStream)
Parameters:
repository - the repository to import to
imageStream - the InputStream of the tar file
Method Detail

getRepository

public String getRepository()
Specified by:
getRepository in interface CreateImageCmd

getTag

public String getTag()
Specified by:
getTag in interface CreateImageCmd

getImageStream

public InputStream getImageStream()
Specified by:
getImageStream in interface CreateImageCmd

withRepository

public CreateImageCmdImpl withRepository(String repository)
Specified by:
withRepository in interface CreateImageCmd
Parameters:
repository - the repository to import to

withImageStream

public CreateImageCmdImpl withImageStream(InputStream imageStream)
Specified by:
withImageStream in interface CreateImageCmd
Parameters:
imageStream - the InputStream of the tar file

withTag

public CreateImageCmdImpl withTag(String tag)
Specified by:
withTag in interface CreateImageCmd
Parameters:
tag - any tag for this image

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.