container

package
v1.1.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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

Return 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