MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / prefixedKey

Method prefixedKey

internal/store/objectstore.go:510–516  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

508}
509
510func (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
518func (s *ObjectTokenStore) resolveAuthPath(auth *cliproxyauth.Auth) (string, error) {
519 if auth == nil {

Callers 4

syncConfigFromBucketMethod · 0.95
syncAuthFromBucketMethod · 0.95
putObjectMethod · 0.95
deleteObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected