Documentation ¶
Index ¶
- func GenClient() (*kubernetes.Clientset, error)
- func ListNamespaces(ctx context.Context, client *kubernetes.Clientset) ([]string, error)
- func ReqListContainers(w http.ResponseWriter, r *http.Request)
- func ReqListNamespaces(w http.ResponseWriter, r *http.Request)
- func ReqWatchLogs(w http.ResponseWriter, r *http.Request)
- func StreamLogs(ctx context.Context, client *kubernetes.Clientset, ns string, pod string, ...) error
- type LogCallback
- type PodContainerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenClient ¶
func GenClient() (*kubernetes.Clientset, error)
func ListNamespaces ¶
func ReqListContainers ¶
func ReqListContainers(w http.ResponseWriter, r *http.Request)
func ReqListNamespaces ¶
func ReqListNamespaces(w http.ResponseWriter, r *http.Request)
func ReqWatchLogs ¶
func ReqWatchLogs(w http.ResponseWriter, r *http.Request)
func StreamLogs ¶
func StreamLogs(ctx context.Context, client *kubernetes.Clientset, ns string, pod string, callback LogCallback) error
Types ¶
type LogCallback ¶
LogCallback is a function type that handles log data chunks.
type PodContainerInfo ¶
func ListAllContainers ¶
func ListAllContainers(ctx context.Context, client *kubernetes.Clientset) (PodContainerInfo, error)
func ListContainers ¶
func ListContainers(ctx context.Context, client *kubernetes.Clientset, ns string) (PodContainerInfo, error)
Click to show internal directories.
Click to hide internal directories.