Contains checks to see if an object exists.
(info *resource.Info)
| 59 | |
| 60 | // Contains checks to see if an object exists. |
| 61 | func (r ResourceList) Contains(info *resource.Info) bool { |
| 62 | for _, i := range r { |
| 63 | if isMatchingInfo(i, info) { |
| 64 | return true |
| 65 | } |
| 66 | } |
| 67 | return false |
| 68 | } |
| 69 | |
| 70 | // Difference will return a new Result with objects not contained in rs. |
| 71 | func (r ResourceList) Difference(rs ResourceList) ResourceList { |