Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 185 for Chen (0.17 sec)

  1. cmd/metacache-entries.go

    			}
    			return other, false
    		}
    	}
    	// If we match, return e
    	if prefer == nil {
    		prefer = e
    	}
    	return prefer, true
    }
    
    // isInDir returns whether the entry is in the dir when considering the separator.
    func (e metaCacheEntry) isInDir(dir, separator string) bool {
    	if len(dir) == 0 {
    		// Root
    		idx := strings.Index(e.name, separator)
    		return idx == -1 || idx == len(e.name)-len(separator)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  2. src/archive/tar/format.go

    func (b *block) toSparse() sparseArray { return sparseArray(b[:]) }
    
    // getFormat checks that the block is a valid tar header based on the checksum.
    // It then attempts to guess the specific format based on magic values.
    // If the checksum fails, then FormatUnknown is returned.
    func (b *block) getFormat() Format {
    	// Verify checksum.
    	var p parser
    	value := p.parseOctal(b.toV7().chksum())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  3. tests/hooks_test.go

    		t.Fatalf("An error from before create callbacks happened when create with invalid value")
    	}
    
    	if DB.Where("code = ?", "Invalid").First(&Product{}).Error == nil {
    		t.Fatalf("Should not save record that have errors")
    	}
    
    	if DB.Save(&Product{Code: "dont_save", Price: 100}).Error == nil {
    		t.Fatalf("An error from after create callbacks happened when create with invalid value")
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  4. cmd/signature-v4-utils_test.go

    		// Test case - 2.
    		// Test case with "X-Amz-Content-Sha256" not set so we can skip.
    		{"", "", "", "", true},
    
    		// Test case - 3.
    		// Test case with "X-Amz-Content-Sha256" header set to  "UNSIGNED-PAYLOAD"
    		// When "X-Amz-Content-Sha256" header is set to  "UNSIGNED-PAYLOAD", validation of content sha256 has to be skipped.
    		{"X-Amz-Content-Sha256", unsignedPayload, "X-Amz-Credential", "", true},
    
    		// Test case - 4.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  5. cmd/admin-heal-ops.go

    // the heal-status API. It blocks if there are
    // maxUnconsumedHealResultItems. When it blocks, the heal sequence
    // routine is effectively paused - this happens when the server has
    // accumulated the maximum number of heal records per heal
    // sequence. When the client consumes further records, the heal
    // sequence automatically resumes. The return value indicates if the
    // operation succeeded.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  6. cmd/api-router.go

    	},
    }
    
    // Set of s3 handler options as bit flags.
    type s3HFlag uint8
    
    const (
    	// when provided, disables Gzip compression.
    	noGZS3HFlag = 1 << iota
    
    	// when provided, enables only tracing of headers. Otherwise, both headers
    	// and body are traced.
    	traceHdrsS3HFlag
    
    	// when provided, disables throttling via the `maxClients` middleware.
    	noThrottleS3HFlag
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    // letters, decimal digits and hyphens, but must not begin or end with
    // a hyphen. See:
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
    func IsValidBucketName(bucket string) bool {
    	// Special case when bucket is equal to one of the meta buckets.
    	if isMinioMetaBucketName(bucket) {
    		return true
    	}
    	if len(bucket) < 3 || len(bucket) > 63 {
    		return false
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. istioctl/pkg/multixds/gather.go

    	// XdsViaAgents accesses Istiod via the tap service of each agent.
    	// This is only used in `proxy-status` command.
    	XdsViaAgents bool
    
    	// XdsViaAgentsLimit is the maximum number of pods being visited by istioctl,
    	// when `XdsViaAgents` is true. This is only used in `proxy-status` command.
    	// 0 means that there is no limit.
    	XdsViaAgentsLimit int
    }
    
    var DefaultOptions = Options{
    	MessageWriter:     os.Stdout,
    	XdsViaAgents:      false,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. cmd/erasure-healing-common_test.go

    	}{
    		{
    			// 1. Tests common times when slice has varying time elements.
    			[]time.Time{
    				time.Unix(0, 1).UTC(),
    				time.Unix(0, 2).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 2).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 1).UTC(),
    			},
    			time.Unix(0, 3).UTC(),
    			3,
    		},
    		{
    			// 2. Tests common time obtained when all elements are equal.
    			[]time.Time{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  10. internal/grid/connection.go

    	// StateUnconnected is the initial state of a connection.
    	// When the first message is sent it will attempt to connect.
    	StateUnconnected = iota
    
    	// StateConnecting is the state from StateUnconnected while the connection is attempted to be established.
    	// After this connection will be StateConnected or StateConnectionError.
    	StateConnecting
    
    	// StateConnected is the state when the connection has been established and is considered stable.
    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)
Back to top