Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 2,705 for Io (0.04 seconds)

  1. cmd/auth-handler.go

    		// To extract region from XML in request body, get copy of request body.
    		payload, err := io.ReadAll(io.LimitReader(r.Body, maxLocationConstraintSize))
    		if err != nil {
    			authZLogIf(ctx, err, logger.ErrorKind)
    			return ErrMalformedXML
    		}
    
    		// Populate payload to extract location constraint.
    		r.Body = io.NopCloser(bytes.NewReader(payload))
    		region, s3Err = parseLocationConstraint(r)
    		if s3Err != ErrNone {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  2. cmd/encryption-v1.go

    }
    
    func newDecryptReader(client io.Reader, key []byte, bucket, object string, seqNumber uint32, metadata map[string]string) (io.Reader, error) {
    	objectEncryptionKey, err := decryptObjectMeta(key, bucket, object, metadata)
    	if err != nil {
    		return nil, err
    	}
    	return newDecryptReaderWithObjectKey(client, objectEncryptionKey, seqNumber)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 38K bytes
    - Click Count (0)
  3. cmd/metacache-set.go

    		switch {
    		case err == nil:
    		case errors.Is(err, io.ErrUnexpectedEOF):
    			if retries == 10 {
    				err := o.checkMetacacheState(ctx, rpc)
    				if err != nil {
    					return entries, fmt.Errorf("remote listing canceled: %w", err)
    				}
    				retries = -1
    			}
    			retryWait()
    			continue
    		case errors.Is(err, io.EOF):
    			return entries, io.EOF
    		}
    
    		// We got a stream to start at.
    		loadedPart := 0
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 30.7K bytes
    - Click Count (0)
  4. cmd/storage-rest-server.go

    			// 0 is unbuffered, copy the rest.
    			_, err := io.CopyBuffer(w, respBody, buf)
    			if err == io.EOF {
    				return nil
    			}
    			return err
    		case 1:
    			errorText, err := io.ReadAll(respBody)
    			if err != nil {
    				return err
    			}
    			return errors.New(string(errorText))
    		case 2:
    			// Block of data
    			var tmp [4]byte
    			_, err := io.ReadFull(respBody, tmp[:])
    			if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 45.7K bytes
    - Click Count (0)
  5. internal/ringbuffer/ring_buffer_test.go

    package ringbuffer
    
    import (
    	"bytes"
    	"errors"
    	"fmt"
    	"hash/crc32"
    	"io"
    	"math/rand"
    	"os"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestRingBuffer_interface(t *testing.T) {
    	rb := New(1)
    	var _ io.Writer = rb
    	var _ io.Reader = rb
    	// var _ io.StringWriter = rb
    	var _ io.ByteReader = rb
    	var _ io.ByteWriter = rb
    }
    
    func TestRingBuffer_Write(t *testing.T) {
    	rb := New(64)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  6. cmd/admin-handlers.go

    	ctx, cancel := context.WithTimeout(ctx, madmin.MaxClientPerfTimeout)
    	defer cancel()
    	totalRx := int64(0)
    	connectTime := time.Now()
    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    		if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF {
    			// would mean the network is not stable. Logging here will help in debugging network issues.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 99.7K bytes
    - Click Count (0)
  7. cmd/object-api-errors.go

    		apiErr := InsufficientWriteQuorum{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    		}
    		if len(params) >= 2 {
    			apiErr.Object = decodeDirObject(params[1])
    		}
    		return apiErr
    	case io.ErrUnexpectedEOF.Error(), io.ErrShortWrite.Error(), context.Canceled.Error(), context.DeadlineExceeded.Error():
    		apiErr := IncompleteBody{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    		}
    		if len(params) >= 2 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 09 02:05:14 GMT 2024
    - 22.1K bytes
    - Click Count (0)
  8. cmd/post-policy_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/base64"
    	"fmt"
    	"io"
    	"maps"
    	"mime/multipart"
    	"net/http"
    	"net/http/httptest"
    	"net/url"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/dustin/go-humanize"
    )
    
    const (
    	iso8601DateFormat = "20060102T150405Z"
    )
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 30.6K bytes
    - Click Count (0)
  9. cmd/bucket-replication-handlers.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"encoding/json"
    	"encoding/xml"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"path"
    	"time"
    
    	"github.com/minio/minio-go/v7"
    	objectlock "github.com/minio/minio/internal/bucket/object/lock"
    	"github.com/minio/minio/internal/bucket/replication"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Aug 15 12:04:40 GMT 2024
    - 23.3K bytes
    - Click Count (0)
  10. cmd/object-api-utils.go

    // properly, because we do not wish to create an object even if
    // client closed the stream prematurely.
    func newS2CompressReader(r io.Reader, on int64, encrypted bool) (rc io.ReadCloser, idx func() []byte) {
    	pr, pw := io.Pipe()
    	// Copy input to compressor
    	opts := compressOpts
    	if encrypted {
    		// The values used for padding are not a security concern,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 37.3K bytes
    - Click Count (0)
Back to Top