Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 129 for read_all (0.39 sec)

  1. cmd/xl-storage-disk-id-check.go

    		return p.storage.ReadVersion(ctx, origvolume, volume, path, versionID, opts)
    	})
    }
    
    func (p *xlStorageDiskIDCheck) ReadAll(ctx context.Context, volume string, path string) (buf []byte, err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricReadAll, volume, path)
    	if err != nil {
    		return nil, err
    	}
    	defer done(&err)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus.go

    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    			log.Errorf("failed to close %s: %s", filename, err)
    		}
    	}()
    	data, err := io.ReadAll(file)
    	if err != nil {
    		return nil, err
    	}
    	return data, nil
    }
    
    func StableXdsStatusCommand(ctx cli.Context) *cobra.Command {
    	cmd := XdsStatusCommand(ctx)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. cmd/storage-rest_test.go

    		expectErr      bool
    	}{
    		{"foo", "myobject", []byte("foo"), false},
    		// file not found error.
    		{"foo", "yourobject", nil, true},
    	}
    
    	for i, testCase := range testCases {
    		result, err := storage.ReadAll(context.Background(), testCase.volumeName, testCase.objectName)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("case %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  4. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/connection/RealCall$AsyncCall;-><init>(Lokhttp3/internal/connection/RealCall;Lokhttp3/Callback;)V
    HSPLokhttp3/internal/connection/RealCall$AsyncCall;->getHost()Ljava/lang/String;
    HSPLokhttp3/internal/connection/RealCall$AsyncCall;->run()V
    HSPLokhttp3/internal/connection/RealCall$CallReference;-><init>(Lokhttp3/internal/connection/RealCall;Ljava/lang/Object;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  5. cmd/streaming-signature-v4.go

    	//
    	// The signature is 64 bytes long (hex-encoded SHA256 hash) and
    	// starts with a 16 byte header: len("chunk-signature=") + 64 == 80.
    	var signature [80]byte
    	_, err = io.ReadFull(cr.reader, signature[:])
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    		cr.err = err
    		return n, cr.err
    	}
    	if !bytes.HasPrefix(signature[:], []byte("chunk-signature=")) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  6. internal/s3select/select_test.go

    				ContentLength: int64(len(w.response)),
    			}
    			res, err := minio.NewSelectResults(&resp, "testbucket")
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			got, err := io.ReadAll(res)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			gotS := strings.TrimSpace(string(got))
    			if !reflect.DeepEqual(gotS, testCase.wantResult) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    import okhttp3.EventListener
    import okhttp3.Headers
    import okhttp3.Interceptor
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.discard
    import okhttp3.internal.http.ExchangeCodec
    import okhttp3.internal.http.HttpMethod
    import okhttp3.internal.http.RealResponseBody
    import okhttp3.internal.http.promisesBody
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        protected abstract T realCall() throws Throwable;
    
        public final T call() {
          try {
            return realCall();
          } catch (Throwable t) {
            threadUnexpectedException(t);
            return null;
          }
        }
      }
    
      public abstract class CheckedInterruptedCallable<T> implements Callable<T> {
        protected abstract T realCall() throws Throwable;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  9. internal/rest/client.go

    			logger.LogOnceIf(ctx, logSubsys, err, c.url.Host)
    			c.MarkOffline(err)
    		}
    		defer xhttp.DrainBody(resp.Body)
    		// Limit the ReadAll(), just in case, because of a bug, the server responds with large data.
    		b, err := io.ReadAll(io.LimitReader(resp.Body, c.MaxErrResponseSize))
    		if err != nil {
    			if xnet.IsNetworkOrHostDown(err, expectTimeouts) {
    				if !c.NoMetrics {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. cmd/storage-interface.go

    	// Write all data, syncs the data to disk.
    	// Should be used for smaller payloads.
    	WriteAll(ctx context.Context, volume string, path string, b []byte) (err error)
    
    	// Read all.
    	ReadAll(ctx context.Context, volume string, path string) (buf []byte, err error)
    	GetDiskLoc() (poolIdx, setIdx, diskIdx int) // Retrieve location indexes.
    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)
Back to top