- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 59 for TrimPrefix (0.1 sec)
-
internal/grid/trace.go
return c.roundtrip(h, req) } // Following trimming is needed for consistency between outputs with other internode traces. local := strings.TrimPrefix(strings.TrimPrefix(t.Local, httpsScheme), httpScheme) remote := strings.TrimPrefix(strings.TrimPrefix(t.Remote, httpsScheme), httpScheme) start := time.Now() body := bytesOrLength(req) resp, err := c.roundtrip(h, req) end := time.Now() status := http.StatusOK
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 01 05:17:37 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/bucket-policy.go
} for _, objLock := range []string{ xhttp.AmzObjectLockMode, xhttp.AmzObjectLockLegalHold, xhttp.AmzObjectLockRetainUntilDate, } { if values, ok := cloneHeader[objLock]; ok { args[strings.TrimPrefix(objLock, "X-Amz-")] = values } cloneHeader.Del(objLock) } for key, values := range cloneHeader { if strings.EqualFold(key, xhttp.AmzObjectTagging) { continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8K bytes - Viewed (0) -
cmd/metacache-entries.go
func (e metaCacheEntry) isInDir(dir, separator string) bool { if len(dir) == 0 { // Root idx := strings.Index(e.name, separator) return idx == -1 || idx == len(e.name)-len(separator) } ext := strings.TrimPrefix(e.name, dir) if len(ext) != len(e.name) { idx := strings.Index(ext, separator) // If separator is not found or is last entry, ok. return idx == -1 || idx == len(ext)-len(separator) } return false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 24.1K bytes - Viewed (0) -
callbacks/preload.go
} if value != "" { preloadMap[name][value] = args } } for name, args := range preloads { preloadFields := strings.Split(name, ".") value := strings.TrimPrefix(strings.TrimPrefix(name, preloadFields[0]), ".") if preloadFields[0] == clause.Associations { for _, relation := range s.Relationships.Relations { if relation.Schema == s { setPreloadMap(relation.Name, value, args)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 11.6K bytes - Viewed (0) -
internal/grid/handlers_string.go
// Code generated by "stringer -type=HandlerID -output=handlers_string.go -trimprefix=Handler msg.go handlers.go"; DO NOT EDIT. package grid import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[handlerInvalid-0] _ = x[HandlerLockLock-1] _ = x[HandlerLockRLock-2] _ = x[HandlerLockUnlock-3]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 09 16:58:30 UTC 2024 - 4.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/PathTranslatingPostProcessor.java
this.projectDir = projectDir; this.pathTranslator = pathTranslator; } public Object execute(String expression, Object value) { expression = ValueSourceUtils.trimPrefix(expression, expressionPrefixes, true); if (projectDir != null && value != null && unprefixedPathKeys.contains(expression)) { return pathTranslator.alignToBaseDirectory(String.valueOf(value), projectDir);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/PathTranslatingPostProcessor.java
this.pathTranslator = pathTranslator; } @Override public Object execute(String expression, Object value) { if (value != null) { expression = ValueSourceUtils.trimPrefix(expression, expressionPrefixes, true); if (unprefixedPathKeys.contains(expression)) { return pathTranslator.alignToBaseDirectory(String.valueOf(value), projectDir); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/bucket-lifecycle-audit.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "strconv" "github.com/minio/minio/internal/bucket/lifecycle" ) //go:generate stringer -type lcEventSrc -trimprefix lcEventSrc_ $GOFILE type lcEventSrc uint8 //revive:disable:var-naming Underscores is used here to indicate where common prefix ends and the enumeration name begins const ( lcEventSrc_None lcEventSrc = iota
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 2.6K bytes - Viewed (0) -
cmd/postpolicyform.go
metaMap := make(map[string]string) for _, policy := range postPolicyForm.Conditions.Policies { if strings.HasPrefix(policy.Key, "$x-amz-meta-") { formCanonicalName := http.CanonicalHeaderKey(strings.TrimPrefix(policy.Key, "$")) metaMap[formCanonicalName] = policy.Value } } // Check if any extra metadata field is passed as input for key := range formValues { if strings.HasPrefix(key, "X-Amz-Meta-") {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 12.4K bytes - Viewed (0) -
internal/store/store.go
key.Name = k if strings.HasSuffix(k, compressExt) { key.Compress = true key.Name = strings.TrimSuffix(key.Name, compressExt) } if key.ItemCount, _ = getItemCount(k); key.ItemCount > 1 { key.Name = strings.TrimPrefix(key.Name, fmt.Sprintf("%d:", key.ItemCount)) } if vals := strings.Split(key.Name, "."); len(vals) == 2 { key.Extension = "." + vals[1] key.Name = strings.TrimSuffix(key.Name, key.Extension) } return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 4.2K bytes - Viewed (0)