All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.github.dockerjava.api.command.PushImageCmd Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.fitbur.github.dockerjava.api.com.fitburmand;

import com.fitbur.github.dockerjava.api.NotFoundException;
import com.fitbur.github.dockerjava.api.async.ResultCallback;
import com.fitbur.github.dockerjava.api.model.AuthConfig;
import com.fitbur.github.dockerjava.api.model.PushResponseItem;

/**
 * Push the latest image to the repository.
 *
 * @param name
 *            The name, e.g. "alexec/busybox" or just "busybox" if you want to com.fitburfault. Not null.
 */
public interface PushImageCmd extends AsyncDockerCmd {

    public String getName();

    public String getTag();

    /**
     * @param name
     *            The name, e.g. "alexec/busybox" or just "busybox" if you want to com.fitburfault. 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
     */
    @Override
    public > T exec(T resultCallback);

    public static interface Exec extends DockerCmdAsyncExec {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy