Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for function (0.18 sec)

  1. cmd/xl-storage.go

    			return nil, err
    		}
    	}
    
    	return &sendFileReader{Reader: io.LimitReader(file, length), Closer: file}, nil
    }
    
    // closeWrapper converts a function to an io.Closer
    type closeWrapper func() error
    
    // Close calls the wrapped function.
    func (c closeWrapper) Close() error {
    	return c()
    }
    
    // CreateFile - creates the file.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    	}
    
    	pr, pw := xioutil.WaitPipe()
    	go func() {
    		pw.CloseWithError(er.getObjectWithFileInfo(ctx, bucket, object, off, length, pw, fi, metaArr, onlineDisks))
    	}()
    
    	// Cleanup function to cause the go routine above to exit, in
    	// case of incomplete read.
    	pipeCloser := func() {
    		pr.CloseWithError(nil)
    	}
    
    	if !unlockOnDefer {
    		return fn(pr, h, pipeCloser, nsUnlocker)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  3. cmd/erasure-server-pool.go

    		return gr.WithCleanupFuncs(nsUnlocker), nil
    	}
    	return gr, nil
    }
    
    // getLatestObjectInfoWithIdx returns the objectInfo of the latest object from multiple pools (this function
    // is present in-case there were duplicate writes to both pools, this function also returns the
    // additional index where the latest object exists, that is used to start the GetObject stream.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    			gset = set.CreateStringSet(group)
    		} else {
    			gset.Add(group)
    		}
    		cache.iamUserGroupMemberships[member] = gset
    	}
    
    	cache.updatedAt = time.Now()
    	return gi.UpdatedAt, nil
    }
    
    // helper function - does not take any locks. Updates only cache if
    // updateCacheOnly is set.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
Back to top