Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewRemoteErr (0.1 sec)

  1. cmd/storage-rest-server.go

    	if !s.checkID(params.Get(storageRESTDiskID)) {
    		return nil, grid.NewRemoteErr(errDiskNotFound)
    	}
    	info, err := s.getStorage().StatVol(context.Background(), params.Get(storageRESTVolume))
    	if err != nil {
    		return nil, grid.NewRemoteErr(err)
    	}
    	return &info, nil
    }
    
    // AppendFileHandler - append data from the request to the file specified.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  2. cmd/peer-rest-server.go

    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return np, grid.NewRemoteErr(errServerNotInitialized)
    	}
    
    	policyName := mss.Get(peerRESTPolicy)
    	if policyName == "" {
    		return np, grid.NewRemoteErr(errors.New("policyName is missing"))
    	}
    
    	if err := globalIAMSys.DeletePolicy(context.Background(), policyName, false); err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    					select {
    					case <-ctx.Done():
    						close(serverCanceled)
    						return NewRemoteErr(ctx.Err())
    					case resp <- []byte{1}:
    						time.Sleep(10 * time.Millisecond)
    					}
    				}
    				// Just wait for it to cancel.
    				<-ctx.Done()
    				close(serverCanceled)
    				return NewRemoteErr(ctx.Err())
    			},
    			OutCapacity: 1,
    			InCapacity:  inCap,
    		}))
    	}
    	register(local)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. cmd/metacache-walk.go

    	var opts WalkDirOptions
    	_, err := opts.UnmarshalMsg(payload)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    
    	if !s.checkID(opts.DiskID) {
    		return grid.NewRemoteErr(errDiskNotFound)
    	}
    
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    	return grid.NewRemoteErr(s.getStorage().WalkDir(ctx, opts, grid.WriterToChannel(ctx, out)))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    }
    
    // RemoteErr is a remote error type.
    // Any error seen on a remote will be returned like this.
    type RemoteErr string
    
    // NewRemoteErr creates a new remote error.
    // The error type is not preserved.
    func NewRemoteErr(err error) *RemoteErr {
    	if err == nil {
    		return nil
    	}
    	r := RemoteErr(err.Error())
    	return &r
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top