From f0521ffd29e12ae80bf71100e3035346723e149e Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Tue, 3 Mar 2015 11:43:41 -0800 Subject: [PATCH] Adding Equal() for ContainerInfoReq --- info/v1/container.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/info/v1/container.go b/info/v1/container.go index 49e31ae0..2625626c 100644 --- a/info/v1/container.go +++ b/info/v1/container.go @@ -93,6 +93,12 @@ type ContainerInfoRequest struct { End time.Time `json:"end,omitempty"` } +func (self *ContainerInfoRequest) Equals(other ContainerInfoRequest) bool { + return self.NumStats == other.NumStats && + self.Start.Equal(other.Start) && + self.End.Equal(other.End) +} + type ContainerInfo struct { ContainerReference