RemoteDockers v1.1.1 RemoteDockers.DockerHostConfig View Source

Link to this section Summary

Functions

Get HTTPoison default options with ssl if enabled

Build configuration with defaults

Build configuration with a specific hostname

Build configuration with specific hostname and port

Build configuration with SSL

Build configuration with hostname, port and SSL

Link to this section Functions

Link to this function get_options(host_config) View Source

Get HTTPoison default options with ssl if enabled

Build configuration with defaults

default:

hostname: "localhost"
port: 2376

Example:

  iex> DockerHostConfig.new()
  %DockerHostConfig{hostname: "localhost", port: 2376}

Build configuration with a specific hostname

default:

port: 2376

Example:

  iex> DockerHostConfig.new("192.168.99.100")
  %DockerHostConfig{hostname: "192.168.99.100", port: 2376}

Build configuration with specific hostname and port

Example:

  iex> DockerHostConfig.new("192.168.99.100", 2345)
  %DockerHostConfig{hostname: "192.168.99.100", port: 2345}
Link to this function new(hostname, certfile, keyfile) View Source

Build configuration with SSL

default:

port: 2376

Example:

  iex> DockerHostConfig.new("192.168.99.100", "cert.pem", "key.pem")
  %DockerHostConfig{
    hostname: "192.168.99.100",
    port: 2376,
    ssl: [
      certfile: "cert.pem",
      keyfile: "key.pem"
    ]
  }
Link to this function new(hostname, port, certfile, keyfile) View Source

Build configuration with hostname, port and SSL

Example:

  iex> DockerHostConfig.new("192.168.99.100", 2345, "cert.pem", "key.pem")
  %DockerHostConfig{
    hostname: "192.168.99.100",
    port: 2345,
    ssl: [
      certfile: "cert.pem",
      keyfile: "key.pem"
    ]
  }