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

com.github.dockerjava.api.command.PullImageCmd Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package com.github.dockerjava.api.command;

import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.model.AuthConfig;
import com.github.dockerjava.api.model.PullResponseItem;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;

/**
 *
 * Pull image from repository.
 *
 */
public interface PullImageCmd extends AsyncDockerCmd {

    @CheckForNull
    String getRepository();

    @CheckForNull
    String getTag();

    @CheckForNull
    String getPlatform();

    @CheckForNull
    String getRegistry();

    @CheckForNull
    AuthConfig getAuthConfig();

    PullImageCmd withRepository(@Nonnull String repository);

    PullImageCmd withTag(String tag);

    /**
     * @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_32}
     */
    PullImageCmd withPlatform(String tag);

    PullImageCmd withRegistry(String registry);

    PullImageCmd withAuthConfig(AuthConfig authConfig);

    @Override
    default ResultCallback.Adapter start() {
        return exec(new PullImageResultCallback());
    }

    interface Exec extends DockerCmdAsyncExec {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy