Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NewContext (0.21 sec)

  1. cmd/kms-handlers.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/policy"
    )
    
    // KMSStatusHandler - GET /minio/kms/v1/status
    func (a kmsAPIHandlers) KMSStatusHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "KMSStatus")
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.KMSStatusAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(/*enable=*/true));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. cmd/sts-handlers.go

    // credentials for regular users on Minio.
    // https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
    func (sts *stsAPIHandlers) AssumeRole(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "AssumeRole")
    
    	claims := make(map[string]interface{})
    	defer logger.AuditLog(ctx, w, r, claims)
    
    	// Check auth here (otherwise r.Form will have unexpected values from
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  4. cmd/bucket-listobjects-handlers.go

    // You can use the versions subresource to list metadata about all
    // of the versions of objects in a bucket.
    func (api objectAPIHandlers) listObjectVersionsHandler(w http.ResponseWriter, r *http.Request, metadata bool) {
    	ctx := newContext(r, w, "ListObjectVersions")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    
    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  5. cmd/object-multipart-handlers.go

    //   - X-Amz-Server-Side-Encryption-Customer-Key
    //   - X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key
    func (api objectAPIHandlers) NewMultipartUploadHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "NewMultipartUpload")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  6. cmd/generic-handlers.go

    			r.URL.Host = remote.EndpointURL.Host
    			// Make sure we remove any existing headers before
    			// proxying the request to another node.
    			for k := range w.Header() {
    				w.Header().Del(k)
    			}
    			ctx := newContext(r, w, "SiteReplicationUploadForwarding")
    			defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    			globalForwarder.ServeHTTP(w, r)
    			return
    		}
    		h.ServeHTTP(w, r)
    	})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  7. cmd/admin-router.go

    	handlerName := getHandlerName(f, "adminAPIHandlers")
    
    	var handler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
    		// Update request context with `logger.ReqInfo`.
    		r = r.WithContext(newContext(r, w, handlerName))
    
    		defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    
    		// Check if object layer is available, if not return error early.
    		if !handlerFlags.Has(noObjLayerFlag) {
    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)
  8. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                doc.put(HL_CACHE, StringUtil.EMPTY);
            }
    
            try {
                final Template template = handlebars.compile(cacheTemplateName);
                final Context hbsContext = Context.newContext(doc);
                return template.apply(hbsContext);
            } catch (final Exception e) {
                logger.warn("Failed to create a cache response.", e);
            }
    
            return null;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 40.1K bytes
    - Viewed (2)
  9. tensorflow/c/eager/c_api_test_util.cc

          isolate_session_state);
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(false));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_ContextSetServerDefWithTimeout(ctx, 0, serialized_server_def.data(),
                                         serialized_server_def.size(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  10. cmd/utils.go

    				ObjectName: ov.ObjectName,
    				VersionID:  ov.VersionID,
    			})
    		}
    		return logger.SetReqInfo(ctx, req)
    	}
    	return ctx
    }
    
    // Returns context with ReqInfo details set in the context.
    func newContext(r *http.Request, w http.ResponseWriter, api string) context.Context {
    	reqID := w.Header().Get(xhttp.AmzRequestID)
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top