Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for len (0.13 sec)

  1. cmd/erasure-object.go

    			tags["parity"] = er.defaultParityCount
    		}
    
    		// count the number of offline disks
    		offline := 0
    		for i := 0; i < max(len(errs), len(dataErrs)); i++ {
    			if i < len(errs) && errors.Is(errs[i], errDiskNotFound) || i < len(dataErrs) && errors.Is(dataErrs[i], errDiskNotFound) {
    				offline++
    			}
    		}
    		if offline > 0 {
    			tags["offline"] = offline
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  2. cmd/erasure-server-pool.go

    	serverPools := make(serverPoolsAvailableSpace, len(z.serverPools))
    
    	storageInfos := make([][]*DiskInfo, len(z.serverPools))
    	nSets := make([]int, len(z.serverPools))
    	g := errgroup.WithNErrs(len(z.serverPools))
    	for index := range z.serverPools {
    		index := index
    		// Skip suspended pools or pools participating in rebalance for any new
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_gen.go

    	for za0005 := range z.PartETags {
    		s += msgp.StringPrefixSize + len(z.PartETags[za0005])
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  4. cmd/iam.go

    	}
    
    	if parentUser == "" {
    		return auth.Credentials{}, time.Time{}, errInvalidArgument
    	}
    
    	if len(opts.accessKey) > 0 && len(opts.secretKey) == 0 {
    		return auth.Credentials{}, time.Time{}, auth.ErrNoSecretKeyWithAccessKey
    	}
    	if len(opts.secretKey) > 0 && len(opts.accessKey) == 0 {
    		return auth.Credentials{}, time.Time{}, auth.ErrNoAccessKeyWithSecretKey
    	}
    
    	var policyBuf []byte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. cmd/sts-handlers_test.go

    				ClientID:     "minio-client-app",
    				ClientSecret: "minio-client-app-secret",
    				ProviderURL:  openIDServer,
    				RedirectURL:  "http://127.0.0.1:10000/oauth_callback",
    			})
    			m[testRoleARNs[len(apps)-1]] = apps[len(apps)-1]
    		}
    
    		openIDServer2 := os.Getenv(EnvTestOpenIDServer2)
    		if openIDServer2 != "" {
    			apps = append(apps, OpenIDClientAppParams{
    				ClientID:     "minio-client-app-2",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  6. cmd/object-api-listobjects_test.go

    					if len(testCase.resultL.Prefixes) != len(resultL.Prefixes) {
    						t.Logf("want: %v", testCase.resultL.Prefixes)
    						t.Logf("got: %v", resultL.Prefixes)
    						t.Errorf("Test %d: %s: Expected number of prefixes in the result to be '%d', but found '%d' prefixes instead", i+1, instanceType, len(testCase.resultL.Prefixes), len(resultL.Prefixes))
    					}
    					for j := 0; j < len(testCase.resultL.Prefixes); j++ {
    						if j >= len(resultL.Prefixes) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  7. cmd/object-api-multipart_test.go

    			}
    			// Asserting the number of Parts.
    			if len(expectedResult.Parts) != len(actualResult.Parts) {
    				t.Errorf("Test %d: %s: Expected the result to contain info of %d Parts, but found %d instead", i+1, instanceType, len(expectedResult.Parts), len(actualResult.Parts))
    			} else {
    				// Iterating over the partInfos and asserting the fields.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    func checkPathLength(pathName string) error {
    	// Apple OS X path length is limited to 1016
    	if runtime.GOOS == "darwin" && len(pathName) > 1016 {
    		return errFileNameTooLong
    	}
    
    	// Disallow more than 1024 characters on windows, there
    	// are no known name_max limits on Windows.
    	if runtime.GOOS == "windows" && len(pathName) > 1024 {
    		return errFileNameTooLong
    	}
    
    	// On Unix we reject paths if they are just '.', '..' or '/'
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    	var result madmin.PolicyEntitiesResult
    
    	isAllPoliciesQuery := len(q.Users) == 0 && len(q.Groups) == 0 && len(q.Policy) == 0
    
    	if len(q.Users) > 0 {
    		result.UserMappings = store.listUserPolicyMappings(cache, q.Users, userPredicate)
    	}
    	if len(q.Groups) > 0 {
    		result.GroupMappings = store.listGroupPolicyMappings(cache, q.Groups, groupPredicate)
    	}
    	if len(q.Policy) > 0 || isAllPoliciesQuery {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  10. cmd/bucket-stats_gen.go

    			zb0002, err = dc.ReadMapHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Stats")
    				return
    			}
    			if z.Stats == nil {
    				z.Stats = make(map[string]*BucketReplicationStat, zb0002)
    			} else if len(z.Stats) > 0 {
    				for key := range z.Stats {
    					delete(z.Stats, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    				var za0002 *BucketReplicationStat
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
Back to top