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

com.github.dockerjava.api.command.CreateSecretCmd 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.exception.ConflictException;
import com.github.dockerjava.api.model.SecretSpec;

import javax.annotation.CheckForNull;

/**
 * Command to create a new secret
 *
 * @since {@link RemoteApiVersion#VERSION_1_25}
 */
public interface CreateSecretCmd extends SyncDockerCmd {

    @CheckForNull
    SecretSpec getSecretSpec();

    CreateSecretCmd withSecretSpec(SecretSpec secretSpec);

    /**
     * @throws ConflictException Named secret already exists
     */
    @Override
    CreateSecretResponse exec() throws ConflictException;

    interface Exec extends DockerCmdSyncExec {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy