()
| 168 | } |
| 169 | |
| 170 | func (r *lockSearchRequest) QueryValues() map[string]string { |
| 171 | q := make(map[string]string) |
| 172 | for _, filter := range r.Filters { |
| 173 | q[filter.Property] = filter.Value |
| 174 | } |
| 175 | |
| 176 | if len(r.Cursor) > 0 { |
| 177 | q["cursor"] = r.Cursor |
| 178 | } |
| 179 | |
| 180 | if r.Limit > 0 { |
| 181 | q["limit"] = strconv.Itoa(r.Limit) |
| 182 | } |
| 183 | |
| 184 | if len(r.Refspec) > 0 { |
| 185 | q["refspec"] = r.Refspec |
| 186 | } |
| 187 | |
| 188 | return q |
| 189 | } |
| 190 | |
| 191 | // LockList encapsulates a set of Locks. |
| 192 | type lockList struct { |