Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for computed (0.21 sec)

  1. internal/etag/reader.go

    	return ETag(sum)
    }
    
    // VerifyError is an error signaling that a
    // computed ETag does not match an expected
    // ETag.
    type VerifyError struct {
    	Expected ETag
    	Computed ETag
    }
    
    func (v VerifyError) Error() string {
    	return fmt.Sprintf("etag: expected ETag %q does not match computed ETag %q", v.Expected, v.Computed)
    }
    
    // UUIDHash - use uuid to make md5sum
    type UUIDHash struct {
    	uuid []byte
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. internal/etag/etag.go

    // and SSE-KMS - with different semantics w.r.t. ETags.
    // In case of SSE-S3, the ETag of an object is computed the same as
    // for single resp. multipart plaintext objects. In particular,
    // the ETag of a singlepart SSE-S3 object is its content MD5.
    //
    // In case of SSE-C and SSE-KMS, the ETag of an object is computed
    // differently. For singlepart uploads the ETag is not the content
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. internal/hash/reader.go

    	"github.com/minio/minio/internal/ioutil"
    )
    
    // A Reader wraps an io.Reader and computes the MD5 checksum
    // of the read content as ETag. Optionally, it also computes
    // the SHA256 checksum of the content.
    //
    // If the reference values for the ETag and content SHA26
    // are not empty then it will check whether the computed
    // match the reference values.
    type Reader struct {
    	src         io.Reader
    	bytesRead   int64
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  4. internal/etag/etag_test.go

    		}
    		if equal := Equal(A, B); equal != test.Equal {
    			t.Fatalf("Test %d: got %v - want %v", i, equal, test.Equal)
    		}
    	}
    }
    
    var readerTests = []struct { // Reference values computed by: echo <content> | md5sum
    	Content string
    	ETag    ETag
    }{
    	{
    		Content: "", ETag: ETag{212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126},
    	},
    	{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  5. internal/crypto/error.go

    	// ErrCustomerKeyMD5Mismatch indicates that the SSE-C key MD5 does not match the
    	// computed MD5 sum. This means that the client provided either the wrong key for
    	// a certain MD5 checksum or the wrong MD5 for a certain key.
    	ErrCustomerKeyMD5Mismatch = Errorf("The provided SSE-C key MD5 does not match the computed MD5 of the SSE-C key")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    			}
    			continue
    		}
    
    		switch filename {
    		case "completed":
    			// Strictly speaking, there is no guarantee that seeing the error at completed:1
    			// (at the end of the file) means we've seen all the errors from earlier in the file,
    			// but usually it does. Certainly if we don't see the completed:1 error, we did
    			// not get all the errors we expected.
    			completed = true
    
    		case "not-declared":
    			sniff[i] |= notDeclared
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. cmd/rebalance-admin.go

    	// Load latest rebalance status
    	meta := &rebalanceMeta{}
    	err = meta.load(ctx, z.serverPools[0])
    	if err != nil {
    		return r, err
    	}
    
    	// Compute disk usage percentage
    	si := z.StorageInfo(ctx, true)
    	diskStats := make([]struct {
    		AvailableSpace uint64
    		TotalSpace     uint64
    	}, len(z.serverPools))
    	for _, disk := range si.Disks {
    		// Ignore invalid.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 22 00:56:43 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  8. misc/go_android_exec/main.go

    	}
    
    	// In case we're booting a device or emulator alongside all.bash, wait for
    	// it to be ready. adb wait-for-device is not enough, we have to
    	// wait for sys.boot_completed.
    	if err := adb("wait-for-device", "exec-out", "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"); err != nil {
    		return 0, err
    	}
    
    	// Done once per make.bash.
    	if err := adbCopyGoroot(); err != nil {
    		return 0, err
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    	if !ok {
    		return nil
    	}
    	return &due
    }
    
    // isCompacted returns whether an entry is compacted.
    // Returns false if not found.
    func (d *dataUsageCache) isCompacted(h dataUsageHash) bool {
    	due, ok := d.Cache[h.Key()]
    	if !ok {
    		return false
    	}
    	return due.Compacted
    }
    
    // findChildrenCopy returns a copy of the children of the supplied hash.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. internal/s3select/sql/evaluate.go

    func (e *Expression) evalNode(r Record, tableAlias string) (*Value, error) {
    	if len(e.And) == 1 {
    		// In this case, result is not required to be boolean
    		// type.
    		return e.And[0].evalNode(r, tableAlias)
    	}
    
    	// Compute OR of conditions
    	result := false
    	for _, ex := range e.And {
    		res, err := ex.evalNode(r, tableAlias)
    		if err != nil {
    			return nil, err
    		}
    		b, ok := res.ToBool()
    		if !ok {
    			return nil, errExpectedBool
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
Back to top