(key string)
| 508 | } |
| 509 | |
| 510 | func (s *ObjectTokenStore) prefixedKey(key string) string { |
| 511 | key = strings.TrimLeft(key, "/") |
| 512 | if s.cfg.Prefix == "" { |
| 513 | return key |
| 514 | } |
| 515 | return strings.TrimLeft(s.cfg.Prefix+"/"+key, "/") |
| 516 | } |
| 517 | |
| 518 | func (s *ObjectTokenStore) resolveAuthPath(auth *cliproxyauth.Auth) (string, error) { |
| 519 | if auth == nil { |
no outgoing calls
no test coverage detected