Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 113 for order (0.21 sec)

  1. cmd/test-utils_test.go

    	// httptest Recorder to capture all the response by the http handler.
    	rec := httptest.NewRecorder()
    
    	// The  API handler gets the reference to the object layer via the global object Layer,
    	// setting it to `nil` in order test for handlers response for uninitialized object layer.
    	globalObjLayerMutex.Lock()
    	globalObjectAPI = nil
    	globalObjLayerMutex.Unlock()
    
    	// call the HTTP handler.
    	apiRouter.ServeHTTP(rec, req)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    		return
    	}
    	// mark resync status as resync started
    	if !heal {
    		s.markStatus(ResyncStarted, opts, objectAPI)
    	}
    
    	// Walk through all object versions - Walk() is always in ascending order needed to ensure
    	// delete marker replicated to target after object version is first created.
    	if err := objectAPI.Walk(ctx, opts.bucket, "", objInfoCh, WalkOptions{}); err != nil {
    		replLogIf(ctx, err)
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  3. cmd/erasure-metadata-utils.go

    			continue
    		}
    		diskCount++
    	}
    	return diskCount
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    // with an input key. This results in consistent order.
    // NOTE: collisions are fine, we are not looking for uniqueness
    // in the slices returned.
    func hashOrder(key string, cardinality int) []int {
    	if cardinality <= 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. cmd/update-notifier.go

    // newer version is available.
    func prepareUpdateMessage(downloadURL string, older time.Duration) string {
    	if downloadURL == "" || older <= 0 {
    		return ""
    	}
    
    	// Compute friendly duration string to indicate time
    	// difference between newer and current release.
    	t := time.Time{}
    	newerThan := humanize.RelTime(t, t.Add(older), "before the latest release", "")
    
    	if globalServerCtxt.JSON {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. cmd/update-notifier_test.go

    		{2 * 365 * 24 * time.Hour, "my_download_url", "2 years before the latest release"},
    	}
    
    	plainMsg := "You are running an older version of MinIO released"
    
    	for i, testCase := range testCases {
    		output := prepareUpdateMessage(testCase.dlURL, testCase.older)
    		line1 := fmt.Sprintf("%s %s", plainMsg, color.YellowBold(testCase.expectedSubStr))
    		line2 := fmt.Sprintf("Update: %s", color.CyanBold(testCase.dlURL))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  6. internal/logger/legacy.go

    )
    
    // Legacy envs
    const (
    	legacyEnvAuditLoggerHTTPEndpoint = "MINIO_AUDIT_LOGGER_HTTP_ENDPOINT"
    	legacyEnvLoggerHTTPEndpoint      = "MINIO_LOGGER_HTTP_ENDPOINT"
    )
    
    // SetLoggerHTTPAudit - helper for migrating older config to newer KV format.
    func SetLoggerHTTPAudit(scfg config.Config, k string, args http.Config) {
    	if !args.Enabled {
    		// Do not enable audit targets, if not enabled
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 03 09:47:07 GMT 2023
    - 2K bytes
    - Viewed (1)
  7. cmd/erasure-metadata-utils_test.go

    	}
    
    	// Tests hashing order to be consistent.
    	for i, testCase := range testCases {
    		hashedOrder := hashOrder(testCase.objectName, 16)
    		if !reflect.DeepEqual(testCase.hashedOrder, hashedOrder) {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.hashedOrder, hashedOrder)
    		}
    	}
    
    	// Tests hashing order to fail for when order is '-1'.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. cmd/common-main.go

    	if err != nil {
    		return
    	}
    
    	var older time.Duration
    	var downloadURL string
    	if lrTime.After(currentReleaseTime) {
    		older = lrTime.Sub(currentReleaseTime)
    		downloadURL = getDownloadURL(releaseTimeToReleaseTag(lrTime))
    	}
    
    	updateMsg := prepareUpdateMessage(downloadURL, older)
    	if updateMsg == "" {
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  9. cmd/site-replication.go

    					ExpiryLCConfig: &configStr,
    					UpdatedAt:      time.Now(),
    				})
    				if err != nil {
    					return errSRBucketMetaError(err)
    				}
    			}
    		}
    	}
    
    	// Order matters from now on how the information is
    	// synced to remote sites.
    
    	// Policies should be synced first.
    	{
    		// Replicate IAM policies on local to all peers.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  10. cmd/handler-utils.go

    			desc = fmt.Sprintf("This 'admin' API is not supported by server in '%s'", getMinioMode())
    		default:
    			desc = fmt.Sprintf("Unexpected client 'admin' API version found '%s', expected '%s', please downgrade the client to older releases", version, madmin.AdminAPIVersion)
    		}
    		writeErrorResponseJSON(r.Context(), w, APIError{
    			Code:           "XMinioAdminVersionMismatch",
    			Description:    desc,
    			HTTPStatusCode: http.StatusUpgradeRequired,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
Back to top