container

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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.

func GetPodLogs

func GetPodLogs(client *client.Client, namespace, podID string, container string) (*Logs, error)

GetPodLogs returns logs for particular pod and container or error when occurred. When container is null, logs for the first one are returned.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL