Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ForceUnlockHandler (0.11 sec)

  1. cmd/lock-rest-server.go

    	// Consequently, if err != nil, reply is always false
    	_, err := l.ll.RUnlock(context.Background(), *args)
    	return l.makeResp(resp, err)
    }
    
    // ForceUnlockHandler - query expired lock status.
    func (l *lockRESTServer) ForceUnlockHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) {
    	resp := lockRPCForceUnlock.NewResponse()
    
    	_, err := l.ll.ForceUnlock(context.Background(), *args)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. internal/dsync/dsync-server_test.go

    	lsrv *lockServer
    }
    
    func (lh *lockServerHandler) writeErrorResponse(w http.ResponseWriter, err error) {
    	w.WriteHeader(http.StatusForbidden)
    	w.Write([]byte(err.Error()))
    }
    
    func (lh *lockServerHandler) ForceUnlockHandler(w http.ResponseWriter, r *http.Request) {
    	args, err := getLockArgs(r)
    	if err != nil {
    		lh.writeErrorResponse(w, err)
    		return
    	}
    
    	if _, err = lh.lsrv.ForceUnlock(&args); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. cmd/admin-router.go

    			// Force unlocks paths
    			adminRouter.Methods(http.MethodPost).Path(adminVersion+"/force-unlock").
    				Queries("paths", "{paths:.*}").HandlerFunc(adminMiddleware(adminAPI.ForceUnlockHandler))
    		}
    
    		adminRouter.Methods(http.MethodPost).Path(adminVersion + "/speedtest").HandlerFunc(adminMiddleware(adminAPI.ObjectSpeedTestHandler, noGZFlag))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    }
    
    // PeerLocks holds server information result of one node
    type PeerLocks struct {
    	Addr  string
    	Locks map[string][]lockRequesterInfo
    }
    
    // ForceUnlockHandler force unlocks requested resource
    func (a adminAPIHandlers) ForceUnlockHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ForceUnlockAdminAction)
    	if objectAPI == nil {
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top