Documentation
¶
Index ¶
- type API
- func (a *API) GetNamespace(w http.ResponseWriter, r *http.Request)
- func (a *API) GetNamespaces(w http.ResponseWriter, r *http.Request)
- func (a *API) GetPod(w http.ResponseWriter, r *http.Request)
- func (a *API) GetPodLog(w http.ResponseWriter, r *http.Request)
- func (a *API) GetPods(w http.ResponseWriter, r *http.Request)
- func (a *API) StreamPodLog(w http.ResponseWriter, r *http.Request)
- type Broker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API exposes client and broker and various methods to interact with backend api-servers
func NewAPI ¶
func NewAPI(c *kubernetes.Clientset) (*API, error)
NewAPI returns an initialized API instance
func (*API) GetNamespace ¶
func (a *API) GetNamespace(w http.ResponseWriter, r *http.Request)
GetNamespace returns a Namespace in a cluster
func (*API) GetNamespaces ¶
func (a *API) GetNamespaces(w http.ResponseWriter, r *http.Request)
GetNamespaces returns NamespaceList in a cluster
func (*API) GetPod ¶
func (a *API) GetPod(w http.ResponseWriter, r *http.Request)
GetPod will return a Pod in a namespace
func (*API) GetPodLog ¶
func (a *API) GetPodLog(w http.ResponseWriter, r *http.Request)
GetPodLog returns container log of a container in a pod
func (*API) GetPods ¶
func (a *API) GetPods(w http.ResponseWriter, r *http.Request)
GetPods will return PodList in a namespace
func (*API) StreamPodLog ¶
func (a *API) StreamPodLog(w http.ResponseWriter, r *http.Request)
StreamPodLog will start streaming logs of a container running in a pod
Click to show internal directories.
Click to hide internal directories.