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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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 returnsKeyMaterialFactorythat gives you the parameters needed to access it.- Throws:
IOExceptionInterruptedException
-
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:
IOExceptionInterruptedException
-
newKeyMaterialFactory
public 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:
IOExceptionInterruptedException
-
newKeyMaterialFactory
public KeyMaterialFactory newKeyMaterialFactory(FilePath dir, @Nullable DockerServerCredentials credentials) throws IOException, InterruptedException Create aKeyMaterialFactoryfor connecting to the docker server/host.- Throws:
IOExceptionInterruptedException
-
toString
-
hashCode
public int hashCode() -
equals
-
newKeyMaterialFactory(Run, VirtualChannel)