Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for AppendFile (0.23 sec)

  1. cmd/storage-interface.go

    	ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) ([]string, error)
    	ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error)
    	AppendFile(ctx context.Context, volume string, path string, buf []byte) (err error)
    	CreateFile(ctx context.Context, origvolume, olume, path string, size int64, reader io.Reader) error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    func (client *storageRESTClient) DeleteVol(ctx context.Context, volume string, forceDelete bool) (err error) {
    	return errInvalidArgument
    }
    
    // AppendFile - append to a file.
    func (client *storageRESTClient) AppendFile(ctx context.Context, volume string, path string, buf []byte) error {
    	values := make(url.Values)
    	values.Set(storageRESTVolume, volume)
    	values.Set(storageRESTFilePath, path)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/erasure-encode_test.go

    	"context"
    	"crypto/rand"
    	"io"
    	"testing"
    
    	"github.com/dustin/go-humanize"
    )
    
    type badDisk struct{ StorageAPI }
    
    func (a badDisk) String() string {
    	return "bad-disk"
    }
    
    func (a badDisk) AppendFile(ctx context.Context, volume string, path string, buf []byte) error {
    	return errFaultyDisk
    }
    
    func (a badDisk) ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  4. cmd/xl-storage-disk-id-check.go

    func (p *xlStorageDiskIDCheck) AppendFile(ctx context.Context, volume string, path string, buf []byte) (err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricAppendFile, volume, path)
    	if err != nil {
    		return err
    	}
    	defer done(&err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error {
    		return p.storage.AppendFile(ctx, volume, path, buf)
    	})
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    	if err != nil {
    		return err
    	}
    
    	return s.writeAll(ctx, volume, path, b, true, volumeDir)
    }
    
    // AppendFile - append a byte array at path, if file doesn't exist at
    // path this call explicitly creates it.
    func (s *xlStorage) AppendFile(ctx context.Context, volume string, path string, buf []byte) (err error) {
    	volumeDir, err := s.getVolDir(volume)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    	filePath := r.Form.Get(storageRESTFilePath)
    
    	buf := make([]byte, r.ContentLength)
    	_, err := io.ReadFull(r.Body, buf)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	err = s.getStorage().AppendFile(r.Context(), volume, filePath, buf)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    	}
    }
    
    // CreateFileHandler - copy the contents from the request.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
Back to top