Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logs ¶
type Logs struct { // Pod name. PodId string `json:"podId"` // Specific time when logs started. SinceTime unversioned.Time `json:"sinceTime"` // Logs string lines. Logs []string `json:"logs"` // The name of the container the logs are for. Container string `json:"container"` }
Logs is a representation of logs response structure.
func ConstructLogs ¶
func ConstructLogs(podID string, sinceTime unversioned.Time, rawLogs string, container string) *Logs
ConstructLogs constructs logs structure for given parameters.
type PodContainerList ¶
type PodContainerList struct {
Containers []string `json:"containers"`
}
PodContainerList is a list of containers of a pod.
func GetPodContainers ¶
func GetPodContainers(client *client.Client, namespace, podID string) (*PodContainerList, error)
GetPodContainers returns containers that a pod has.
Click to show internal directories.
Click to hide internal directories.