Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 110 for Read (0.16 sec)

  1. internal/grid/muxclient.go

    		dst = binary.LittleEndian.AppendUint32(dst, uint32(h))
    	}
    	return m.parent.send(m.ctx, dst)
    }
    
    // RequestStateless will send a single payload request and stream back results.
    // req may not be read/written to after calling.
    // TODO: Not implemented
    func (m *muxClient) RequestStateless(h HandlerID, req []byte, out chan<- Response) {
    	if m.init {
    		out <- Response{Err: errors.New("mux client already used")}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/input.go

    	// Distinguish these cases using the column number, since we don't
    	// see the space itself. Note that text/scanner reports the position at the
    	// end of the token. It's where you are now, and you just read this token.
    	if tok == '(' && in.Stack.Col() == prevCol+1 {
    		// Macro has arguments. Scan list of formals.
    		acceptArg := true
    		args = []string{} // Zero length but not nil.
    	Loop:
    		for {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  3. cmd/format-erasure.go

    		return nil, err
    	}
    
    	return getFormatErasureInQuorum(formats)
    }
    
    // ecDrivesNoConfig returns the erasure coded drives in a set if no config has been set.
    // It will attempt to read it from env variable and fall back to drives/2.
    func ecDrivesNoConfig(setDriveCount int) (int, error) {
    	sc, err := storageclass.LookupConfig(config.KVS{}, setDriveCount)
    	if err != nil {
    		return 0, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. cmd/update.go

    // Check if this is Helm package installation and report helm chart version
    func getHelmVersion(helmInfoFilePath string) string {
    	// Read the file exists.
    	helmInfoFile, err := Open(helmInfoFilePath)
    	if err != nil {
    		// Log errors and return "" as MinIO can be deployed
    		// without Helm charts as well.
    		if !osIsNotExist(err) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. operator/cmd/mesh/manifest-generate_test.go

    		if err != nil {
    			panic(fmt.Errorf("failed to make temp dir: %v", err))
    		}
    		f, err := os.Open("testdata/manifest-generate/data-snapshot.tar.gz")
    		if err != nil {
    			panic(fmt.Errorf("failed to read data snapshot: %v", err))
    		}
    		if err := extract(f, d); err != nil {
    			panic(fmt.Errorf("failed to extract data snapshot: %v", err))
    		}
    		return chartSourceType(filepath.Join(d, "manifests"))
    	}()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    	st, err := remoteConn.NewStream(ctx, handlerTest, []byte(testPayload))
    	errFatal(err)
    
    	// Wait for the server to send the first response.
    	<-serverSent
    
    	// Read back from the stream and block.
    	nowBlocking := make(chan struct{})
    	stopBlocking := make(chan struct{})
    	defer close(stopBlocking)
    	go func() {
    		st.Results(func(b []byte) error {
    			close(nowBlocking)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. istioctl/pkg/multicluster/remote_secret.go

    		}
    	default:
    		return nil, nil, fmt.Errorf("unsupported type: %v", opt.Type)
    	}
    	tokenSecret, err := getServiceAccountSecret(client, opt)
    	if err != nil {
    		return nil, nil, fmt.Errorf("could not get access token to read resources from local kube-apiserver: %v", err)
    	}
    
    	var server string
    	var warn Warning
    	if opt.ServerOverride != "" {
    		server = opt.ServerOverride
    	} else {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    	if err != nil {
    		return err
    	}
    
    	if len(data) == 0 {
    		return nil
    	}
    	if len(data) <= 4 {
    		return fmt.Errorf("rebalanceMeta: no data")
    	}
    
    	// Read header
    	switch binary.LittleEndian.Uint16(data[0:2]) {
    	case rebalMetaFmt:
    	default:
    		return fmt.Errorf("rebalanceMeta: unknown format: %d", binary.LittleEndian.Uint16(data[0:2]))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom.go

    			return nil
    		}
    		return err
    	}
    	if len(data) == 0 {
    		// Seems to be empty create a new poolMeta object.
    		return nil
    	}
    	if len(data) <= 4 {
    		return fmt.Errorf("poolMeta: no data")
    	}
    	// Read header
    	switch binary.LittleEndian.Uint16(data[0:2]) {
    	case poolMetaFormat:
    	default:
    		return fmt.Errorf("poolMeta: unknown format: %d", binary.LittleEndian.Uint16(data[0:2]))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  10. src/bufio/bufio.go

    			return n - remain, b.readErr()
    		}
    	}
    }
    
    // Read reads data into p.
    // It returns the number of bytes read into p.
    // The bytes are taken from at most one Read on the underlying [Reader],
    // hence n may be less than len(p).
    // To read exactly len(p) bytes, use io.ReadFull(b, p).
    // If the underlying [Reader] can return a non-zero count with io.EOF,
    // then this Read method can do so as well; see the [io.Reader] docs.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
Back to top