kubelet/container: Add GetContainerLogs to runtime interface.

This commit is contained in:
Yifan Gu
2015-04-28 20:25:25 -07:00
parent a4316aa638
commit fb1c55aa11
3 changed files with 10 additions and 5 deletions

View File

@@ -72,6 +72,11 @@ type Runtime interface {
Pull(image string)
// IsImagePresent checks whether the container image is already in the local storage.
IsImagePresent(image string) (bool, error)
// GetContainerLogs returns logs of a specific container. By
// default, it returns a snapshot of the container log. Set 'follow' to true to
// stream the log. Set 'follow' to false and specify the number of lines (e.g.
// "100" or "all") to tail the log.
GetContainerLogs(containerID, tail string, follow bool, stdout, stderr io.Writer) (err error)
}
// Pod is a group of containers, with the status of the pod.