:py:mod:`k8s_client.views.contexts` =================================== .. py:module:: k8s_client.views.contexts Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: k8s_client.views.contexts.get_contexts k8s_client.views.contexts.get_context k8s_client.views.contexts.get_context_busy_jobs .. py:function:: get_contexts() Get contexts list Parameters ---------- NONE Returns ------- - ``[code: 200]`` `list` [`dict`] JSON containing the full contexts .. py:function:: get_context(context_name) Get the context info Parameters ---------- ``"context_name"``: `string` (optional) The name of the context of which having the data. Returns ------- - ``[code: 200]`` `dict` JSON containing the data of the default context if ``context_name`` is a `` ` - ``[code: 404]`` `string` Error message if ``context_name`` is **NOT** a `` .. py:function:: get_context_busy_jobs(context_name) Get the info of the busy jobs of the provided context Parameters ---------- ``"context_name"``: `string` (optional) The name of the context of which having the data. Returns ------- - ``[code: 200]`` `dict` JSON containing the data of the default context if ``context_name`` is a `` ` - ``[code: 404]`` `string` Error message if ``context_name`` is **NOT** a ``