View Source kuberlnetes_watch (kuberlnetes v0.1.0)

gen_server process providing kubernetes watch functionality. Supervised by kuberlnetes_watch_sup - each process represents an open watch for a given resource.

Link to this section Summary

Link to this section Types

-type supported_kind() :: string().
-type watch_opts() ::
    #{receiver => atom() | pid(),
      monitor => boolean(),
      supervised => boolean(),
      name => string(),
      namespace => string(),
      kind => supported_kind(),
      server => kuberlnetes:server()}.

Link to this section Functions

Link to this function

handle_call(Message, From, State)

View Source
Link to this function

handle_cast(Message, State)

View Source
Link to this function

handle_continue(_, State)

View Source
Link to this function

handle_info(Message, State)

View Source
Link to this function

start_link(Receiver, Server, Opts)

View Source
-spec start_link(Receiver, Server, Opts) -> Result
              when
                  Receiver :: pid() | atom(),
                  Server :: kuberlnetes:server(),
                  Opts :: watch_opts(),
                  Result :: gen_server:start_ret().
-spec stop(Pid) -> Result when Pid :: pid(), Result :: ok.
Link to this function

terminate(Reason, State)

View Source
-spec watch(Server, Opts) -> Result
         when
             Server :: kuberlnetes:server(),
             Opts :: kuberlnetes_watch:watch_opts(),
             Result :: {ok, pid()}.