(rawPath string)
| 129 | } |
| 130 | |
| 131 | func parseObjectPath(rawPath string) (bucket, object string, ok bool) { |
| 132 | parts := strings.SplitN(strings.TrimPrefix(rawPath, "/"), "/", 2) |
| 133 | if len(parts) != 2 || parts[0] == "" || parts[1] == "" { |
| 134 | return "", "", false |
| 135 | } |
| 136 | return parts[0], parts[1], true |
| 137 | } |
| 138 | |
| 139 | // hasNonObjectQuery reports whether the request carries a query parameter that |
| 140 | // makes gofakes3 route it to a sub-resource handler instead of plain object |
no outgoing calls