(sortBy string)
| 55 | } |
| 56 | |
| 57 | func validListSort(sortBy string) bool { |
| 58 | switch sortBy { |
| 59 | case "", "name", "size", "time", "type": |
| 60 | return true |
| 61 | default: |
| 62 | return false |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | func validListTimeField(timeField string) bool { |
| 67 | switch timeField { |
no outgoing calls
no test coverage detected