(path string)
| 468 | } |
| 469 | |
| 470 | func parseResourceName(path string) (string, error) { |
| 471 | ss := strings.Split(path, "/") |
| 472 | if len(ss) > 0 { |
| 473 | return ss[len(ss)-1], nil |
| 474 | } |
| 475 | return "", fmt.Errorf("cant not get resource name from url %s", path) |
| 476 | } |
| 477 | |
| 478 | func addUrlNamespace(path string, ns string) string { |
| 479 | ss := strings.Split(path, "/") |