Integrate apiserver with provider GetContainerLogs

This commit is contained in:
Rita Zhang
2017-12-14 16:33:05 -08:00
parent b9b3bafb09
commit 123863c1ae
4 changed files with 36 additions and 22 deletions

View File

@@ -24,8 +24,8 @@ type Provider interface {
// GetPod retrieves a pod by name from the provider (can be cached).
GetPod(namespace, name string) (*v1.Pod, error)
// GetPodLogs retrieves the logs of a pod by name from the provider.
GetPodLogs(namespace, name string) (string, error)
// GetContainerLogs retrieves the logs of a container by name from the provider.
GetContainerLogs(namespace, podName, containerName string) (string, error)
// GetPodStatus retrieves the status of a pod by name from the provider.
GetPodStatus(namespace, name string) (*v1.PodStatus, error)