com.github.dockerjava.api.command.PushImageCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.api.command;
import java.io.IOException;
import java.io.InputStream;
import com.github.dockerjava.api.NotFoundException;
import com.github.dockerjava.api.model.AuthConfig;
import com.github.dockerjava.api.model.PushEventStreamItem;
/**
* Push the latest image to the repository.
*
* @param name The name, e.g. "alexec/busybox" or just "busybox" if you want to default. Not null.
*/
public interface PushImageCmd extends DockerCmd{
public String getName();
public String getTag();
/**
* @param name The name, e.g. "alexec/busybox" or just "busybox" if you want to default. Not null.
*/
public PushImageCmd withName(String name);
/**
* @param tag The image's tag. Not null.
*/
public PushImageCmd withTag(String tag);
public AuthConfig getAuthConfig();
public PushImageCmd withAuthConfig(AuthConfig authConfig);
/**
* @throws NotFoundException No such image
*/
public Response exec() throws NotFoundException;
public static interface Exec extends DockerCmdExec {
}
public static abstract class Response extends InputStream {
public abstract Iterable getItems() throws IOException;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy