Packages

The Engine API is an HTTP API served by Docker Engine. It is the API the Docker client uses to communicate with the Engine, so everything the Docker client can do can be done with the API.

Current section

Files

Jump to
ex_docker_engine_api lib docker_engine_api model endpoint_spec.ex
Raw

lib/docker_engine_api/model/endpoint_spec.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.0.1 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DockerEngineAPI.Model.EndpointSpec do
@moduledoc """
Properties that can be configured to access and load balance a service.
"""
@derive Jason.Encoder
defstruct [
:Mode,
:Ports
]
@type t :: %__MODULE__{
:Mode => String.t | nil,
:Ports => [DockerEngineAPI.Model.EndpointPortConfig.t] | nil
}
alias DockerEngineAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:Ports, :list, DockerEngineAPI.Model.EndpointPortConfig)
end
end