Add a pod status equality method to the status manager.

This commit is contained in:
Prashanth Balasubramanian
2015-06-22 12:31:46 -07:00
parent 5f61392e6f
commit af175cc00b
4 changed files with 51 additions and 4 deletions

View File

@@ -57,7 +57,8 @@ type Runtime interface {
// KillPod kills all the containers of a pod.
KillPod(pod Pod) error
// GetPodStatus retrieves the status of the pod, including the information of
// all containers in the pod.
// all containers in the pod. Clients of this interface assume the containers
// statuses in a pod always have a deterministic ordering (eg: sorted by name).
GetPodStatus(*api.Pod) (*api.PodStatus, error)
// PullImage pulls an image from the network to local storage using the supplied
// secrets if necessary.