Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Montes (0.24 sec)

  1. cmd/post-policy_test.go

    	retStr := "{"
    	retStr = retStr + expirationStr + ","
    	retStr += conditionStr
    	retStr += "}"
    
    	return []byte(retStr)
    }
    
    // newPostPolicyBytesV4 - creates a bare bones postpolicy string with key and bucket matches.
    func newPostPolicyBytesV4(credential, bucketName, objectKey string, expiration time.Time) []byte {
    	t := UTCNow()
    	// Add the expiration date.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  2. cmd/handler-utils.go

    		return matches[1]
    	}
    	return "unknown"
    }
    
    func methodNotAllowedHandler(api string) func(w http.ResponseWriter, r *http.Request) {
    	return errorResponseHandler
    }
    
    // If none of the http routes match respond with appropriate errors
    func errorResponseHandler(w http.ResponseWriter, r *http.Request) {
    	if r.Method == http.MethodOptions {
    		return
    	}
    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)
  3. cmd/admin-router.go

    		// -- Health API --
    		adminRouter.Methods(http.MethodGet).Path(adminVersion + "/healthinfo").
    			HandlerFunc(adminMiddleware(adminAPI.HealthInfoHandler))
    	}
    
    	// If none of the routes match add default error handler routes
    	adminRouter.NotFoundHandler = httpTraceAll(errorResponseHandler)
    	adminRouter.MethodNotAllowedHandler = httpTraceAll(methodNotAllowedHandler("Admin"))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. cmd/api-router.go

    	apiRouter.Methods(http.MethodGet).Path(SlashSeparator + SlashSeparator).
    		HandlerFunc(s3APIMiddleware(api.ListBucketsHandler))
    
    	// If none of the routes match add default error handler routes
    	apiRouter.NotFoundHandler = collectAPIStats("notfound", httpTraceAll(errorResponseHandler))
    	apiRouter.MethodNotAllowedHandler = collectAPIStats("methodnotallowed", httpTraceAll(methodNotAllowedHandler("S3")))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  5. cmd/endpoint-ellipses_test.go

    		t.Run("", func(t *testing.T) {
    			gotEs, err := parseEndpointSet(0, testCase.arg)
    			if err != nil && testCase.success {
    				t.Errorf("Expected success but failed instead %s", err)
    			}
    			if err == nil && !testCase.success {
    				t.Errorf("Expected failure but passed instead")
    			}
    			if !reflect.DeepEqual(testCase.es, gotEs) {
    				t.Errorf("Expected %v, got %v", testCase.es, gotEs)
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 15.2K bytes
    - Viewed (0)
Back to top