forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthCmd.java
More file actions
33 lines (25 loc) · 1014 Bytes
/
Copy pathAuthCmd.java
File metadata and controls
33 lines (25 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.exception.UnauthorizedException;
import com.github.dockerjava.api.model.AuthConfig;
import com.github.dockerjava.api.model.AuthResponse;
import javax.annotation.CheckForNull;
/**
*
* Authenticate with the server, useful for checking authentication.
*
*/
public interface AuthCmd extends SyncDockerCmd<AuthResponse> {
@CheckForNull
AuthConfig getAuthConfig();
AuthCmd withAuthConfig(AuthConfig authConfig);
/**
* @return The status. Based on it's value you may mean you need to authorise your account, e.g.: "Account created. Please see the
* documentation of the registry http://localhost:5000/v1/ for instructions how to activate it."
* @throws UnauthorizedException
* If you're not authorised (e.g. bad password).
*/
@Override
AuthResponse exec() throws UnauthorizedException;
interface Exec extends DockerCmdSyncExec<AuthCmd, AuthResponse> {
}
}