Package io.fabric8.maven.docker.access
Class DockerMachine
- java.lang.Object
-
- io.fabric8.maven.docker.access.DockerMachine
-
- All Implemented Interfaces:
DockerConnectionDetector.DockerHostProvider
public class DockerMachine extends Object implements DockerConnectionDetector.DockerHostProvider
launch docker-machine to obtain environment settings
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.maven.docker.access.DockerConnectionDetector.DockerHostProvider
DockerConnectionDetector.DockerHostProvider.Comparator
-
-
Constructor Summary
Constructors Constructor Description DockerMachine(Logger log, DockerMachineConfiguration machine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerConnectionDetector.ConnectionParametergetConnectionParameter(String certPath)Get value of the docker host as detected by this provider.intgetPriority()Get the priority of the env provider.
-
-
-
Constructor Detail
-
DockerMachine
public DockerMachine(Logger log, DockerMachineConfiguration machine)
-
-
Method Detail
-
getConnectionParameter
public DockerConnectionDetector.ConnectionParameter getConnectionParameter(String certPath) throws IOException
Description copied from interface:DockerConnectionDetector.DockerHostProviderGet value of the docker host as detected by this provider. Return null if it couldn't be detected.- Specified by:
getConnectionParameterin interfaceDockerConnectionDetector.DockerHostProvider- Returns:
- the docker host parameter or null
- Throws:
IOException
-
getPriority
public int getPriority()
Description copied from interface:DockerConnectionDetector.DockerHostProviderGet the priority of the env provider. A priority of -1 means, this is a 'fallback' called as last resort.- Specified by:
getPriorityin interfaceDockerConnectionDetector.DockerHostProvider- Returns:
- priority, the higher, the earlier the provider is called. The highest priority of internal providers are not larger than 100.
-
-