Documentation ¶
Index ¶
- func ConstructLogDetails(podID string, rawLogs string, container string, logSelector *logs.Selection) *logs.LogDetails
- func GetLogDetails(client kubernetes.Interface, namespace, podID string, container string, ...) (*logs.LogDetails, error)
- func GetLogFile(client kubernetes.Interface, namespace, podID string, container string) (string, io.ReadCloser, error)
- type PodContainerList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructLogDetails ¶ added in v1.7.0
func ConstructLogDetails(podID string, rawLogs string, container string, logSelector *logs.Selection) *logs.LogDetails
ConstructLogDetails creates a new log details structure for given parameters.
func GetLogDetails ¶ added in v1.7.0
func GetLogDetails(client kubernetes.Interface, namespace, podID string, container string, logSelector *logs.Selection) (*logs.LogDetails, error)
GetLogDetails returns logs for particular pod and container. When container is null, logs for the first one are returned.
func GetLogFile ¶ added in v1.7.0
func GetLogFile(client kubernetes.Interface, namespace, podID string, container string) (string, io.ReadCloser, error)
GetLogFile returns a stream to the log file which can be piped directly to the respose. This avoids oom issues.
Types ¶
type PodContainerList ¶
type PodContainerList struct {
Containers []string `json:"containers"`
}
PodContainerList is a list of containers of a pod.
func GetPodContainers ¶
func GetPodContainers(client kubernetes.Interface, namespace, podID string) (*PodContainerList, error)
GetPodContainers returns containers that a pod has.
Click to show internal directories.
Click to hide internal directories.