Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for HasPrefix (0.07 sec)

  1. src/cmd/cgo/gcc.go

    				}
    			}
    
    			if n.IsConst() {
    				continue
    			}
    		}
    
    		// If this is a struct, union, or enum type name, no need to guess the kind.
    		if strings.HasPrefix(n.C, "struct ") || strings.HasPrefix(n.C, "union ") || strings.HasPrefix(n.C, "enum ") {
    			n.Kind = "type"
    			needType = append(needType, n)
    			continue
    		}
    
    		if (goos == "darwin" || goos == "ios") && strings.HasSuffix(n.C, "Ref") {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  2. cmd/iam.go

    	usersPrefix := strings.HasPrefix(event.keyPath, iamConfigUsersPrefix)
    	groupsPrefix := strings.HasPrefix(event.keyPath, iamConfigGroupsPrefix)
    	stsPrefix := strings.HasPrefix(event.keyPath, iamConfigSTSPrefix)
    	svcPrefix := strings.HasPrefix(event.keyPath, iamConfigServiceAccountsPrefix)
    	policyPrefix := strings.HasPrefix(event.keyPath, iamConfigPoliciesPrefix)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  3. 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)
  4. cmd/batch-handlers.go

    	listResult := madmin.ListBatchJobsResult{}
    	for result := range resultCh {
    		if result.Err != nil {
    			writeErrorResponseJSON(ctx, w, toAPIError(ctx, result.Err), r.URL)
    			return
    		}
    		if strings.HasPrefix(result.Item.Name, batchJobReportsPrefix+slashSeparator) {
    			continue
    		}
    		req := &BatchJobRequest{}
    		if err := req.load(ctx, objectAPI, result.Item.Name); err != nil {
    			if !errors.Is(err, errNoSuchJob) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  5. tests/migrate_test.go

    		Int8 Smallint
    	}
    
    	tracer := Tracer{
    		Logger: DB.Config.Logger,
    		Test: func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
    			sql, _ := fc()
    			if strings.HasPrefix(sql, "ALTER TABLE \"migrate_ints\" ALTER COLUMN \"int8\" TYPE smallint") {
    				t.Fatalf("shouldn't execute ALTER COLUMN TYPE if such type is already existed in DB schema: sql: %s",
    					sql)
    			}
    		},
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	if basePath == "" || deletePath == "" {
    		return nil
    	}
    
    	bp := pathutil.Clean(basePath) // do not override basepath / or deletePath /
    	dp := pathutil.Clean(deletePath)
    	if !strings.HasPrefix(dp, bp) || dp == bp {
    		return nil
    	}
    
    	var err error
    	if recursive {
    		err = s.moveToTrash(deletePath, true, immediate)
    	} else {
    		err = Remove(deletePath)
    	}
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    		{"test-bucket-list-object", "", "obj0", "", 1, resultCases[19], nil, true},
    		// Testing with both marker and prefix, but without truncation (43-45).
    		// The valid combination of marker and prefix should satisfy strings.HasPrefix(marker, prefix).
    		{"test-bucket-list-object", "obj", "obj0", "", 2, resultCases[20], nil, true},
    		{"test-bucket-list-object", "obj", "obj1", "", 1, resultCases[21], nil, true},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/bucket-handlers.go

    	}
    
    	if maxUploads < 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidMaxUploads), r.URL)
    		return
    	}
    
    	if keyMarker != "" {
    		// Marker not common with prefix is not implemented.
    		if !HasPrefix(keyMarker, prefix) {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    			return
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    			switch k {
    			case tierFVIDKey, tierFVMarkerKey:
    				continue
    			}
    		}
    		if equals(k, "x-amz-storage-class") && string(v) == storageclass.STANDARD {
    			continue
    		}
    		switch {
    		case strings.HasPrefix(strings.ToLower(k), ReservedMetadataPrefixLower), equals(k, VersionPurgeStatusKey):
    			fi.Metadata[k] = string(v)
    		}
    	}
    	fi.ReplicationState = getInternalReplicationState(fi.Metadata)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top