Adding Equal() for ContainerInfoReq

This commit is contained in:
Victor Marmol 2015-03-03 11:43:41 -08:00
parent d94f9363b0
commit f0521ffd29

View File

@ -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