Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 938 for Nil (0.03 sec)

  1. internal/bucket/object/lock/lock.go

    	if err != nil {
    		return nil, err
    	}
    
    	hold = &ObjectLegalHold{}
    	if err = xml.NewDecoder(bytes.NewReader(buf)).Decode(hold); err != nil {
    		return nil, err
    	}
    
    	if !hold.Status.Valid() {
    		return nil, ErrMalformedXML
    	}
    	return
    }
    
    // FilterObjectLockMetadata filters object lock metadata if s3:GetObjectRetention permission is denied or if isCopy flag set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/logger/reqinfo.go

    func (r *ReqInfo) AppendTags(key, val string) *ReqInfo {
    	if r == nil {
    		return nil
    	}
    	r.Lock()
    	defer r.Unlock()
    	r.tags = append(r.tags, KeyVal{key, val})
    	return r
    }
    
    // SetTags - sets key/val to ReqInfo.tags
    func (r *ReqInfo) SetTags(key, val string) *ReqInfo {
    	if r == nil {
    		return nil
    	}
    	r.Lock()
    	defer r.Unlock()
    	// Search of tag key already exists in tags
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. internal/config/identity/openid/provider/keycloak.go

    	}
    
    	if p.adminURL == "" {
    		return nil, errors.New("Admin URL cannot be empty")
    	}
    
    	_, err := url.Parse(p.adminURL)
    	if err != nil {
    		return nil, fmt.Errorf("Unable to parse the adminURL %s: %w", p.adminURL, err)
    	}
    
    	if p.client.Transport == nil {
    		p.client.Transport = http.DefaultTransport
    	}
    
    	if p.oeConfig.TokenEndpoint == "" {
    		return nil, errors.New("missing OpenID token endpoint")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 14 18:12:07 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/warm-backend-s3.go

    			return nil, s3.ToObjectError(err, object)
    		}
    	}
    	c := &minio.Core{Client: s3.client}
    	// Important to use core primitives here to pass range get options as is.
    	r, _, _, err := c.GetObject(ctx, s3.Bucket, s3.getDest(object), gopts)
    	if err != nil {
    		return nil, s3.ToObjectError(err, object)
    	}
    	return r, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. internal/handlers/forwarder.go

    		req.Header.Set(xForwardedHost, req.Host)
    	}
    }
    
    func forwardedPort(req *http.Request) string {
    	if req == nil {
    		return ""
    	}
    
    	if _, port, err := net.SplitHostPort(req.Host); err == nil && port != "" {
    		return port
    	}
    
    	if req.TLS != nil {
    		return "443"
    	}
    
    	return "80"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. cmd/streaming-signature-v4.go

    		} else if err == bufio.ErrBufferFull {
    			err = errLineTooLong
    		}
    		return nil, nil, err
    	}
    	if len(buf) >= maxLineLength {
    		return nil, nil, errLineTooLong
    	}
    	// Parse s3 specific chunk extension and fetch the values.
    	hexChunkSize, hexChunkSignature := parseS3ChunkExtension(buf)
    	return hexChunkSize, hexChunkSignature, nil
    }
    
    // trimTrailingWhitespace - trim trailing white space.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. internal/cachevalue/cache_test.go

    	t1, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	t2, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	if !t1.Equal(t2) {
    		t.Fatalf("expected time to be equal: %s != %s", t1, t2)
    	}
    
    	time.Sleep(3 * time.Second)
    
    	t3, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. internal/http/listener_test.go

    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    					t.Fatalf("Test %d:, listenErrs[%d] error: expected = <nil>, got = %v", testIdx+1, i, listenErrs[i])
    				}
    			} else if listenErrs[i] == nil {
    				t.Fatalf("Test %d: listenErrs[%d]: expected = %v, got = <nil>", testIdx+1, i, expectedListenErr)
    			}
    		}
    		if listener != nil {
    			listener.Close()
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. internal/s3select/jstream/decoder.go

    		return i, Number, err
    	case '-':
    		if c = d.next(); c < '0' || c > '9' {
    			return nil, Unknown, d.mkError(ErrSyntax, "in negative numeric literal")
    		}
    		n, err := d.number()
    		if err != nil {
    			return nil, Unknown, err
    		}
    		return -n, Number, nil
    	case 'f':
    		if d.remaining() < 4 {
    			return nil, Unknown, d.mkError(ErrUnexpectedEOF)
    		}
    		//nolint:gocritic
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. cmd/endpoint.go

    		endpoint, err := NewEndpoint(poolsLayout[0].layout[0][0])
    		if err != nil {
    			return nil, setupType, err
    		}
    		if err := endpoint.UpdateIsLocal(); err != nil {
    			return nil, setupType, err
    		}
    		if endpoint.Type() != PathEndpointType {
    			return nil, setupType, config.ErrInvalidEndpoint(nil).Msg("use path style endpoint for single node setup")
    		}
    
    		endpoint.SetPoolIndex(0)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top