Class DockerServerEndpoint
java.lang.Object
hudson.model.AbstractDescribableImpl<DockerServerEndpoint>
org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint
- All Implemented Interfaces:
Describable<DockerServerEndpoint>
Encapsulates the endpoint of Docker daemon and how to interact with it.
As Describable
it comes with pre-baked configuration form that you can use in
your builders/publishers/etc that interact with Docker daemon.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ID of the credentials used to talk to this endpoint.getUri()
Gets the endpoint in URI, such as "unix:///var/run/docker.sock".int
hashCode()
newKeyMaterialFactory
(FilePath dir, DockerServerCredentials credentials) Create aKeyMaterialFactory
for connecting to the docker server/host.Deprecated.newKeyMaterialFactory
(Item context, hudson.remoting.VirtualChannel target) Deprecated.newKeyMaterialFactory
(Run context, hudson.remoting.VirtualChannel target) Makes the key materials available locally and returnsKeyMaterialFactory
that gives you the parameters needed to access it.toString()
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
DockerServerEndpoint
-
-
Method Details
-
getUri
Gets the endpoint in URI, such as "unix:///var/run/docker.sock".Null to indicate whatever Docker picks by default.
-
getCredentialsId
ID of the credentials used to talk to this endpoint. -
newKeyMaterialFactory
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@NonNull AbstractBuild build) throws IOException, InterruptedException Deprecated.Makes the key materials available locally for the on-going build and returnsKeyMaterialFactory
that gives you the parameters needed to access it.- Throws:
IOException
InterruptedException
-
newKeyMaterialFactory
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@NonNull Item context, @NonNull hudson.remoting.VirtualChannel target) throws IOException, InterruptedException Deprecated.Makes the key materials available locally and returnsKeyMaterialFactory
that gives you the parameters needed to access it.- Throws:
IOException
InterruptedException
-
newKeyMaterialFactory
public KeyMaterialFactory newKeyMaterialFactory(@NonNull Run context, @NonNull hudson.remoting.VirtualChannel target) throws IOException, InterruptedException Makes the key materials available locally and returnsKeyMaterialFactory
that gives you the parameters needed to access it.- Throws:
IOException
InterruptedException
-
newKeyMaterialFactory
public KeyMaterialFactory newKeyMaterialFactory(FilePath dir, @Nullable DockerServerCredentials credentials) throws IOException, InterruptedException Create aKeyMaterialFactory
for connecting to the docker server/host.- Throws:
IOException
InterruptedException
-
toString
-
hashCode
public int hashCode() -
equals
-
newKeyMaterialFactory(Run, VirtualChannel)