Skip to content

Commit

Permalink
Merge pull request #354 from batteries-included/elliott/run_spec
Browse files Browse the repository at this point in the history
fix: allow http body types in the Base runner return
  • Loading branch information
mruoss authored Jan 8, 2025
2 parents d1cef91 + 212ac07 commit 68c96d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/k8s/client/runner/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ defmodule K8s.Client.Runner.Base do
Base HTTP processor for `K8s.Client`.
"""

@typedoc "Acceptable HTTP body types"
@type body_t :: list(map()) | map() | binary() | nil

@type error_t ::
{:error, K8s.Middleware.Error.t()}
| {:error, K8s.Operation.Error.t()}
| {:error, K8s.Client.APIError.t()}
| {:error, K8s.Discovery.Error.t()}
| {:error, atom()}
| {:error, binary()}
@type result_t :: {:ok, map() | reference()} | error_t

@typedoc "Acceptable HTTP body types"
@type body_t :: list(map()) | map() | binary() | nil
@type result_t :: {:ok, map() | reference() | body_t} | error_t

alias K8s.Conn
alias K8s.Middleware.Request
Expand Down

0 comments on commit 68c96d9

Please sign in to comment.