# `Opsmaru.Containers.Host`
[🔗](https://github.com/upmaru/opsmaru-containers/blob/v0.1.0/lib/opsmaru/containers/host.ex#L1)

Host-owned Docker request policy. Both listener adapters call the same policy.

Implementations perform local admission only. Backend access begins after
admission. The deadline is shared by context, authorization and bind mapping.

# `authorize`

```elixir
@callback authorize(Opsmaru.Containers.Context.t(), classified_request :: map()) ::
  :allow | :deny
```

# `context`

```elixir
@callback context(request :: map()) ::
  {:ok, Opsmaru.Containers.Context.t()} | {:error, term()}
```

# `map_bind_source`
*optional* 

```elixir
@callback map_bind_source(Opsmaru.Containers.Context.t(), String.t()) ::
  {:ok, String.t()} | :deny
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
