- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 106 for hasPrefix (0.07 sec)
-
internal/http/listener_test.go
localIP4.Add(ip.String()) } } // Filter ipList by IPs those do not start with '127.'. nonLoopBackIPs := localIP4.FuncMatch(func(ip string, matchString string) bool { return !strings.HasPrefix(ip, "127.") }, "") if len(nonLoopBackIPs) == 0 { t.Fatalf("No non-loop back IP address found for this host") } nonLoopBackIP := nonLoopBackIPs.ToSlice()[0] return nonLoopBackIP }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 17:41:02 UTC 2024 - 11.8K bytes - Viewed (0) -
cmd/bucket-listobjects-handlers.go
if !strings.EqualFold(encodingType, "url") { return ErrInvalidEncodingMethod } } if !IsValidObjectPrefix(prefix) { return ErrInvalidObjectName } if marker != "" && !HasPrefix(marker, prefix) { return ErrNotImplemented } return ErrNone } func (api objectAPIHandlers) ListObjectVersionsHandler(w http.ResponseWriter, r *http.Request) { api.listObjectVersionsHandler(w, r, false)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 11.4K bytes - Viewed (0) -
internal/etag/etag.go
// ETags. func parse(s string, strict bool) (ETag, error) { // An S3 ETag may be a double-quoted string. // Therefore, we remove double quotes at the // start and end, if any. if strings.HasPrefix(s, `"`) && strings.HasSuffix(s, `"`) { s = s[1 : len(s)-1] } // An S3 ETag may be a multipart ETag that // contains a '-' followed by a number. // If the ETag does not a '-' is either
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Mar 10 21:09:36 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
!strings.Contains(test.input, "<>") wantName := "" if isFuncSym { // Strip $|* and (SB) and +Int. wantName = test.output[:len(test.output)-4] if strings.HasPrefix(wantName, "$") || strings.HasPrefix(wantName, "*") { wantName = wantName[1:] } if i := strings.Index(wantName, "+"); i >= 0 { wantName = wantName[:i] } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 23.9K bytes - Viewed (0) -
migrator/migrator.go
isSameType = fullDataType == realDataType ) if !field.PrimaryKey { // check type if !strings.HasPrefix(fullDataType, realDataType) { // check type aliases aliases := m.DB.Migrator().GetTypeAliases(realDataType) for _, alias := range aliases { if strings.HasPrefix(fullDataType, alias) { isSameType = true break } } if !isSameType { alterColumn = true
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Apr 26 07:15:49 UTC 2024 - 29K bytes - Viewed (0) -
istioctl/pkg/tag/generate.go
if err != nil { return "", err } var tagWebhookYaml string for _, mf := range mfs { for _, m := range mf.Manifests { if m.GetKind() == "MutatingWebhookConfiguration" && strings.HasPrefix(m.GetName(), "istio-revision-tag-") { tagWebhookYaml = m.Content break } } } if tagWebhookYaml == "" { return "", fmt.Errorf("could not find MutatingWebhookConfiguration in manifests") }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.3K bytes - Viewed (0) -
internal/crypto/sse-kms.go
json := jsoniter.ConfigCompatibleWithStandardLibrary if err := json.Unmarshal(b, &ctx); err != nil { return "", nil, err } } keyID := h.Get(xhttp.AmzServerSideEncryptionKmsID) spaces := strings.HasPrefix(keyID, " ") || strings.HasSuffix(keyID, " ") if spaces { return "", nil, ErrInvalidEncryptionKeyID } return strings.TrimPrefix(keyID, ARNPrefix), ctx, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 8.5K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
routeTyped := &route.RouteConfiguration{} err = rcd.RouteConfig.UnmarshalTo(routeTyped) if err != nil { return "", err } if routeTyped.Name != sPort && !strings.HasPrefix(routeTyped.Name, "http.") && !strings.HasPrefix(routeTyped.Name, "https.") { continue } for _, vh := range routeTyped.VirtualHosts { for _, route := range vh.Routes {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
cmd/s3-zip-handlers.go
for _, file := range files { objName := zipObjInfo.Name + archiveSeparator + file.Name if objName <= startAfter || objName <= token { continue } if strings.HasPrefix(objName, prefix) { if count == maxKeys { isTruncated = true break } if delimiter != "" { i := strings.Index(objName[len(prefix):], delimiter) if i >= 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 15.8K bytes - Viewed (0) -
cmd/admin-heal-ops.go
// Check if new heal sequence to be started overlaps with any // existing, running sequence hpath := pathJoin(h.bucket, h.object) for k, hSeq := range ahs.healSeqMap { if !hSeq.hasEnded() && (HasPrefix(k, hpath) || HasPrefix(hpath, k)) { errMsg = "The provided heal sequence path overlaps with an existing " + fmt.Sprintf("heal path: %s", k) return nil, errorCodes.ToAPIErr(ErrHealOverlappingPaths), errMsg } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 25.6K bytes - Viewed (0)