Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 107 for Valid (0.15 sec)

  1. internal/grid/handlers.go

    	// Static check if we exceed 255 handler ids.
    	// Extend the type to uint16 when hit.
    	if handlerLast > 255 {
    		panic(fmt.Sprintf("out of handler IDs. %d > %d", handlerLast, 255))
    	}
    }
    
    func (h HandlerID) valid() bool {
    	return h != handlerInvalid && h < handlerLast
    }
    
    func (h HandlerID) isTestHandler() bool {
    	return h >= handlerTest && h <= handlerTest2
    }
    
    // RemoteErr is a remote error type.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    		{"---", "", "", "", 0, ListObjectsInfo{}, BucketNameInvalid{Bucket: "---"}, false},
    		{"ad", "", "", "", 0, ListObjectsInfo{}, BucketNameInvalid{Bucket: "ad"}, false},
    		// Valid bucket names, but they do not exist (6-8).
    		{"volatile-bucket-1", "", "", "", 1000, ListObjectsInfo{}, BucketNotFound{Bucket: "volatile-bucket-1"}, false},
    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)
  3. cmd/config-current.go

    	globalAutoEncryption = crypto.LookupAutoEncryption() // Enable auto-encryption if enabled
    	if globalAutoEncryption && GlobalKMS == nil {
    		logger.Fatal(errors.New("no KMS configured"), "MINIO_KMS_AUTO_ENCRYPTION requires a valid KMS configuration")
    	}
    
    	transport := NewHTTPTransport()
    
    	bootstrapTraceMsg("initialize the event notification targets")
    	globalNotifyTargetList, err = notify.FetchEnabledTargets(GlobalContext, s, transport)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  4. cmd/sftp-server.go

    		}
    	}
    	if len(filteredAlgos) == 0 {
    		logger.Fatal(fmt.Errorf("no valid algorithms passed to --sftp=%s\nValid algorithms: %v", arg, strings.Join(allowed, ", ")), "unable to start SFTP server")
    	}
    	return filteredAlgos
    }
    
    func startSFTPServer(args []string) {
    	var (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. cmd/format-erasure_test.go

    					Sets             [][]string `json:"sets"`
    					DistributionAlgo string     `json:"distributionAlgo"`
    				}{
    					Version: "0",
    				},
    			},
    			false,
    		},
    	}
    
    	// Valid all test cases.
    	for i, testCase := range testCases {
    		if err := checkFormatErasureValue(testCase.format, nil); err != nil && testCase.success {
    			t.Errorf("Test %d: Expected failure %s", i+1, err)
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  6. cmd/endpoint-ellipses.go

    		}
    		return x
    	}
    	result = totalSizes[0]
    	for i := 1; i < len(totalSizes); i++ {
    		result = gcd(result, totalSizes[i])
    	}
    	return result
    }
    
    // isValidSetSize - checks whether given count is a valid set size for erasure coding.
    var isValidSetSize = func(count uint64) bool {
    	return (count >= setSizes[0] && count <= setSizes[len(setSizes)-1])
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. cmd/signature-v4-utils_test.go

    		}
    	}
    }
    
    // TestIsValidRegion - Tests validate the comparison logic for asserting whether the region from http request is valid.
    func TestIsValidRegion(t *testing.T) {
    	testCases := []struct {
    		inputReqRegion  string
    		inputConfRegion string
    
    		expectedResult bool
    	}{
    		{"", "", true},
    		{globalMinioDefaultRegion, "", true},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  8. cmd/object-api-datatypes.go

    	// Any metadata set during InitMultipartUpload, including encryption headers.
    	UserDefined map[string]string
    
    	// ChecksumAlgorithm if set
    	ChecksumAlgorithm string
    }
    
    // Lookup - returns if uploadID is valid
    func (lm ListMultipartsInfo) Lookup(uploadID string) bool {
    	for _, upload := range lm.Uploads {
    		if upload.UploadID == uploadID {
    			return true
    		}
    	}
    	return false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  9. cmd/admin-heal-ops.go

    		jbytes, err := json.Marshal(healSequenceStatus{
    			Summary: healFinishedStatus,
    		})
    		return jbytes, toAdminAPIErrCode(GlobalContext, err)
    	}
    
    	// Check if client-token is valid
    	if clientToken != h.clientToken {
    		return nil, ErrHealInvalidClientToken
    	}
    
    	// Take lock to access and update the heal-sequence
    	h.mutex.Lock()
    	defer h.mutex.Unlock()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  10. cmd/metacache-entries.go

    		// shallow decode.
    		xl, err := entry.xlmeta()
    		if err != nil {
    			if !errors.Is(err, errFileNotFound) {
    				internalLogIf(GlobalContext, err)
    			}
    			continue
    		}
    		objsValid++
    
    		// Add all valid to candidates.
    		r.candidates = append(r.candidates, xl.versions)
    
    		// We select the first object we find as a candidate and see if all match that.
    		// This is to quickly identify if all agree.
    		if selected == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
Back to top