public class PushImageCmdImpl extends AbstrAuthCfgDockerCmd<PushImageCmd,PushImageCmd.Response> implements PushImageCmd
PushImageCmd.Exec, PushImageCmd.Response
execution
Constructor and Description |
---|
PushImageCmdImpl(PushImageCmd.Exec exec,
String name) |
Modifier and Type | Method and Description |
---|---|
PushImageCmd.Response |
exec() |
String |
getName() |
String |
getTag() |
String |
toString() |
PushImageCmd |
withName(String name) |
PushImageCmd |
withTag(String tag) |
getAuthConfig, registryAuth, withAuthConfig
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthConfig, withAuthConfig
public PushImageCmdImpl(PushImageCmd.Exec exec, String name)
public String getName()
getName
in interface PushImageCmd
public String getTag()
getTag
in interface PushImageCmd
public PushImageCmd withName(String name)
withName
in interface PushImageCmd
name
- The name, e.g. "alexec/busybox" or just "busybox" if you want to default. Not null.public PushImageCmd withTag(String tag)
withTag
in interface PushImageCmd
tag
- The image's tag. Can be null or empty.public PushImageCmd.Response exec() throws NotFoundException
exec
in interface DockerCmd<PushImageCmd.Response>
exec
in interface PushImageCmd
exec
in class AbstrDockerCmd<PushImageCmd,PushImageCmd.Response>
NotFoundException
- No such imageCopyright © 2015. All Rights Reserved.