@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class ServerKeyMaterialImpl extends KeyMaterial
KeyMaterial for talking to docker daemon.
Key/certificates have to be laid out in a specific file names in this directory to make docker(1) happy.
NULL| Constructor and Description |
|---|
ServerKeyMaterialImpl(String host,
hudson.FilePath dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deletes the key materials from the file system.
|
hudson.EnvVars |
env()
Builds the environment variables needed to be passed when docker runs, to access
DockerServerCredentials that this object was created from. |
pluspublic ServerKeyMaterialImpl(String host, hudson.FilePath dir)
public hudson.EnvVars env()
KeyMaterialDockerServerCredentials that this object was created from.env in class KeyMaterialpublic void close()
throws IOException
KeyMaterialKeyMaterial is created, it must be also cleaned up each time.close in interface Closeableclose in interface AutoCloseableclose in class KeyMaterialIOExceptionCopyright © 2004-2015. All Rights Reserved.