Merge pull request #563 from vmarmol/kube
Adding Equal() for ContainerInfoReq
This commit is contained in:
commit
0e8af3b671
@ -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