View Source K8s.Client.Mint.WebSocket (k8s v2.0.0-rc.2)

Websocket implementation of Mint based K8s.Client.Provider

Link to this section Summary

Link to this section Types

@type t() :: %K8s.Client.Mint.WebSocket{
  conn: Mint.HTTP.t(),
  ref: Mint.Types.request_ref() | nil,
  websocket: Mint.WebSocket.t() | nil
}

Link to this section Functions

Link to this function

request(uri, headers, http_opts)

View Source
@spec request(uri :: URI.t(), headers :: list(), http_opts :: keyword()) ::
  K8s.Client.Provider.websocket_response_t()
Link to this function

stream(uri, headers, http_opts)

View Source
@spec stream(uri :: URI.t(), headers :: list(), http_opts :: keyword()) ::
  K8s.Client.Provider.stream_response_t()
Link to this function

stream_to(uri, headers, http_opts, stream_to)

View Source
@spec stream_to(
  uri :: URI.t(),
  headers :: list(),
  http_opts :: keyword(),
  stream_to :: pid()
) ::
  K8s.Client.Provider.stream_to_response_t()