Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Output ¶
func Output(resourceType, resourceName string, out OutputData)
Types ¶
type ContainerInfo ¶
type OutputData ¶
type OutputData struct {
ResourceType string `json:"resourceType"`
ResourceName string `json:"resourceName"`
Namespace string `json:"namespace"`
Pods []PodInfo `json:"pods"`
Events []EventInfo `json:"events,omitempty"` // Resource-level events
PodEvents []EventInfo `json:"podEvents,omitempty"` // Pod-level events
}
OutputData is your final struct holding everything fetched.
type PodInfo ¶
type PodInfo struct {
PodName string `json:"podName"`
Containers []ContainerInfo `json:"containers"`
ContainerLog []kube.ContainerLog `json:"logs,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.