Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isValidLocation (1.23 sec)

  1. cmd/handler-utils.go

    	location = locationConstraint.Location
    	if location == "" {
    		location = globalSite.Region()
    	}
    	if !isValidLocation(location) {
    		return location, ErrInvalidRegion
    	}
    
    	return location, ErrNone
    }
    
    // Validates input location is same as configured region
    // of MinIO server.
    func isValidLocation(location string) bool {
    	region := globalSite.Region()
    	return region == "" || region == location
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.3K bytes
    - Viewed (1)
Back to top