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 SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanID of the credentials used to talk to this endpoint.getUri()Gets the endpoint in URI, such as "unix:///var/run/docker.sock".inthashCode()newKeyMaterialFactory(FilePath dir, DockerServerCredentials credentials) Create aKeyMaterialFactoryfor 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 returnsKeyMaterialFactorythat gives you the parameters needed to access it.toString()Methods inherited from class hudson.model.AbstractDescribableImplgetDescriptor
- 
Constructor Details- 
DockerServerEndpoint
 
- 
- 
Method Details- 
getUriGets the endpoint in URI, such as "unix:///var/run/docker.sock".Null to indicate whatever Docker picks by default. 
- 
getCredentialsIdID 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 returnsKeyMaterialFactorythat 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 returnsKeyMaterialFactorythat gives you the parameters needed to access it.- Throws:
- IOException
- InterruptedException
 
- 
newKeyMaterialFactorypublic KeyMaterialFactory newKeyMaterialFactory(@NonNull Run context, @NonNull hudson.remoting.VirtualChannel target) throws IOException, InterruptedException Makes the key materials available locally and returnsKeyMaterialFactorythat gives you the parameters needed to access it.- Throws:
- IOException
- InterruptedException
 
- 
newKeyMaterialFactorypublic KeyMaterialFactory newKeyMaterialFactory(FilePath dir, @Nullable DockerServerCredentials credentials) throws IOException, InterruptedException Create aKeyMaterialFactoryfor connecting to the docker server/host.- Throws:
- IOException
- InterruptedException
 
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
- 
newKeyMaterialFactory(Run, VirtualChannel)