Enable kubectl logs po

This commit is contained in:
Rita Zhang
2017-12-11 20:25:54 -08:00
parent 57996b44c4
commit e0c9da5d95
5 changed files with 123 additions and 3 deletions

View File

@@ -24,7 +24,10 @@ type Provider interface {
// GetPod retrieves a pod by name from the provider (can be cached).
GetPod(namespace, name string) (*v1.Pod, error)
// GetPodStatus retrievesthe status of a pod by name from the provider.
// GetPodLogs retrieves the logs of a pod by name from the provider.
GetPodLogs(namespace, name string) (string, error)
// GetPodStatus retrieves the status of a pod by name from the provider.
GetPodStatus(namespace, name string) (*v1.PodStatus, error)
// GetPods retrieves a list of all pods running on the provider (can be cached).
@@ -37,6 +40,10 @@ type Provider interface {
// within Kuberentes.
NodeConditions() []v1.NodeCondition
// NodeAddresses returns a list of addresses for the node status
// within Kuberentes.
NodeAddresses() []v1.NodeAddress
// OperatingSystem returns the operating system the provider is for.
OperatingSystem() string
}