Adding Equal() for ContainerInfoReq
This commit is contained in:
parent
d94f9363b0
commit
f0521ffd29
@ -93,6 +93,12 @@ type ContainerInfoRequest struct {
|
|||||||
End time.Time `json:"end,omitempty"`
|
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 {
|
type ContainerInfo struct {
|
||||||
ContainerReference
|
ContainerReference
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user