k8s v0.5.0-rc.2 K8s.Client.Provider behaviour
HTTP Request / Response provider behaviour
Link to this section Summary
Link to this section Types
Link to this type
error_t()
error_t() :: {:error, atom() | HTTPoison.Response.t() | HTTPoison.Error.t()}
Link to this type
success_t()
Link to this section Callbacks
Link to this callback
handle_response(arg1)
handle_response( {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()} ) :: response_t()
Handle HTTP Responses
Link to this callback
headers(atom, arg2)
headers(atom(), K8s.Conn.RequestOptions.t()) :: [{binary(), binary()}]
Generate headers for HTTP Requests
Link to this callback
request(atom, binary, binary, keyword, keyword)
Perform HTTP Requests