Use mux to handle req; get tail from req

This commit is contained in:
Rita Zhang
2017-12-21 21:42:05 -08:00
parent 04db926faa
commit 43137d09f7
6 changed files with 52 additions and 24 deletions

View File

@@ -25,7 +25,7 @@ type Provider interface {
GetPod(namespace, name string) (*v1.Pod, error)
// GetContainerLogs retrieves the logs of a container by name from the provider.
GetContainerLogs(namespace, podName, containerName string) (string, error)
GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
// GetPodStatus retrieves the status of a pod by name from the provider.
GetPodStatus(namespace, name string) (*v1.PodStatus, error)