(ip string)
| 97 | } |
| 98 | |
| 99 | func (i *ipPool) Use(ip string) { |
| 100 | i.mut.Lock() |
| 101 | defer i.mut.Unlock() |
| 102 | if !i.cidr.Contains(net.ParseIP(ip)) { |
| 103 | return |
| 104 | } |
| 105 | i.used[ip] = struct{}{} |
| 106 | } |
| 107 | |
| 108 | func labelsParse(selector string) (labels.Selector, error) { |
| 109 | if selector == "" { |