Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 166 for Read (0.18 sec)

  1. internal/grid/connection.go

    	// the connection will be closed and readers/writers will unblock.
    	go c.monitorState(conn, cancel)
    
    	c.handleMsgWg.Add(2)
    	c.reconnectMu.Unlock()
    
    	// Read goroutine
    	go func() {
    		defer func() {
    			if rec := recover(); rec != nil {
    				gridLogIf(ctx, fmt.Errorf("handleMessages: panic recovered: %v", rec))
    				debug.PrintStack()
    			}
    			c.connChange.L.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  2. cmd/bitrot-whole.go

    	disk       StorageAPI
    	volume     string
    	filePath   string
    	verifier   *BitrotVerifier // Holds the bit-rot info
    	tillOffset int64           // Affects the length of data requested in disk.ReadFile depending on Read()'s offset
    	buf        []byte          // Holds bit-rot verified data
    }
    
    func (b *wholeBitrotReader) ReadAt(buf []byte, offset int64) (n int, err error) {
    	if b.buf == nil {
    		b.buf = make([]byte, b.tillOffset-offset)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. istioctl/pkg/cli/option.go

    func (r *RootFlags) configureDefaultNamespace() {
    	configAccess := clientcmd.NewDefaultPathOptions()
    
    	kubeconfig := *r.kubeconfig
    	if kubeconfig != "" {
    		// use specified kubeconfig file for the location of the
    		// config to read
    		configAccess.GlobalFile = kubeconfig
    	}
    
    	// gets existing kubeconfig or returns new empty config
    	config, err := configAccess.GetStartingConfig()
    	if err != nil {
    		r.defaultNamespace = v1.NamespaceDefault
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 18:01:27 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. internal/rest/client.go

    	}
    
    	return req, nil
    }
    
    type respBodyMonitor struct {
    	io.ReadCloser
    	expectTimeouts  bool
    	errorStatusOnce sync.Once
    }
    
    func (r *respBodyMonitor) Read(p []byte) (n int, err error) {
    	n, err = r.ReadCloser.Read(p)
    	r.errorStatus(err)
    	return
    }
    
    func (r *respBodyMonitor) Close() (err error) {
    	err = r.ReadCloser.Close()
    	r.errorStatus(err)
    	return
    }
    
    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)
  5. cmd/iam-etcd-store.go

    		err = errNoSuchGroup
    	}
    	return err
    }
    
    func (ies *IAMEtcdStore) watch(ctx context.Context, keyPath string) <-chan iamWatchEvent {
    	ch := make(chan iamWatchEvent)
    
    	// go routine to read events from the etcd watch channel and send them
    	// down `ch`
    	go func() {
    		for {
    		outerLoop:
    			watchCh := ies.client.Watch(ctx,
    				keyPath, etcd.WithPrefix(), etcd.WithKeysOnly())
    
    			for {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  6. cni/pkg/util/pluginutil.go

    				log.Infof("file modified: %v", event.Name)
    				fileModified <- struct{}{}
    			}
    		case err, ok := <-watcher.Errors:
    			if !ok {
    				return
    			}
    			errChan <- err
    		}
    	}
    }
    
    // Read CNI config from file and return the unmarshalled JSON as a map
    func ReadCNIConfigMap(path string) (map[string]any, error) {
    	cniConfig, err := os.ReadFile(path)
    	if err != nil {
    		return nil, err
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. cmd/bucket-replication.go

    		defer rc.Close()
    
    		if !p.initialized() {
    			return re, nil
    		}
    		var data [4]byte
    		n, err := rc.Read(data[:])
    		if err != nil {
    			return re, err
    		}
    		if n != len(data) {
    			return re, errors.New("replication mrf: no data")
    		}
    		// Read resync meta header
    		switch binary.LittleEndian.Uint16(data[0:2]) {
    		case mrfMetaFormat:
    		default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  8. cmd/object-api-errors.go

    		return "Unknown"
    	}
    }
    
    // InsufficientReadQuorum storage cannot satisfy quorum for read operation.
    type InsufficientReadQuorum struct {
    	Bucket string
    	Object string
    	Err    error
    	Type   RQErrType
    }
    
    func (e InsufficientReadQuorum) Error() string {
    	return "Storage resources are insufficient for the read operation " + e.Bucket + "/" + e.Object
    }
    
    // Unwrap the error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. cmd/erasure-object_test.go

    	bucket := "bucket"
    	object := "object"
    
    	// Create "bucket"
    	err = obj.MakeBucket(ctx, bucket, MakeBucketOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Test: Upload a small file and read it.
    	smallData := []byte{'a'}
    	_, err = obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(smallData), int64(len(smallData)), "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  10. internal/crypto/error.go

    )
    
    // errOutOfEntropy indicates that the a source of randomness (PRNG) wasn't able
    // to produce enough random data. This is fatal error and should cause a panic.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top