com.github.dockerjava.core.command
Class PushImageCmdImpl

java.lang.Object
  extended by com.github.dockerjava.core.command.AbstrDockerCmd<T,RES_T>
      extended by com.github.dockerjava.core.command.AbstrAuthCfgDockerCmd<PushImageCmd,InputStream>
          extended by com.github.dockerjava.core.command.PushImageCmdImpl
All Implemented Interfaces:
DockerCmd<InputStream>, PushImageCmd

public class PushImageCmdImpl
extends AbstrAuthCfgDockerCmd<PushImageCmd,InputStream>
implements PushImageCmd

Push the latest image to the repository.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.PushImageCmd
PushImageCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
PushImageCmdImpl(PushImageCmd.Exec exec, String name)
           
 
Method Summary
 InputStream exec()
           
 String getName()
           
 String toString()
           
 PushImageCmd withName(String name)
           
 
Methods inherited from class com.github.dockerjava.core.command.AbstrAuthCfgDockerCmd
getAuthConfig, registryAuth, withAuthConfig
 
Methods inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
toDockerException
 
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.PushImageCmd
getAuthConfig, withAuthConfig
 

Constructor Detail

PushImageCmdImpl

public PushImageCmdImpl(PushImageCmd.Exec exec,
                        String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface PushImageCmd

withName

public PushImageCmd withName(String name)
Specified by:
withName in interface PushImageCmd
Parameters:
name - The name, e.g. "alexec/busybox" or just "busybox" if you want to default. Not null.

toString

public String toString()
Overrides:
toString in class Object

exec

public InputStream exec()
                 throws NotFoundException
Specified by:
exec in interface DockerCmd<InputStream>
Specified by:
exec in interface PushImageCmd
Overrides:
exec in class AbstrDockerCmd<PushImageCmd,InputStream>
Throws:
NotFoundException - No such image


Copyright © 2014. All rights reserved.