Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for appendTo (0.26 sec)

  1. internal/hash/checksum.go

    func NewChecksumString(alg, value string) *Checksum {
    	return NewChecksumWithType(NewChecksumType(alg), value)
    }
    
    // AppendTo will append the checksum to b.
    // 'parts' is used when checksum has ChecksumMultipart set.
    // ReadCheckSums reads the values back.
    func (c *Checksum) AppendTo(b []byte, parts []byte) []byte {
    	if c == nil {
    		return nil
    	}
    	var tmp [binary.MaxVarintLen32]byte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		}
    
    		buf, err = xlMeta.AppendTo(metaDataPoolGet())
    		defer metaDataPoolPut(buf)
    		if err != nil {
    			return err
    		}
    	} else {
    		if err = xlMeta.Load(buf); err != nil {
    			// Corrupted data, reset and write.
    			xlMeta = xlMetaV2{}
    		}
    
    		if err = xlMeta.AddVersion(fi); err != nil {
    			return err
    		}
    
    		buf, err = xlMeta.AppendTo(metaDataPoolGet())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    			// Same, discard one.
    			merged = append(merged, a[0])
    			a = a[1:]
    			b = b[1:]
    		case a[0].name < b[0].name:
    			merged = append(merged, a[0])
    			a = a[1:]
    		default:
    			merged = append(merged, b[0])
    			b = b[1:]
    		}
    		if limit > 0 && len(merged) >= limit {
    			break
    		}
    	}
    	// Append anything left.
    	if limit < 0 || len(merged) < limit {
    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)
  4. cmd/erasure-object.go

    	fi.VersionID = opts.VersionID
    	if opts.Versioned && fi.VersionID == "" {
    		fi.VersionID = mustGetUUID()
    	}
    
    	fi.DataDir = mustGetUUID()
    	fi.Checksum = opts.WantChecksum.AppendTo(nil, nil)
    	if opts.EncryptFn != nil {
    		fi.Checksum = opts.EncryptFn("object-checksum", fi.Checksum)
    	}
    	uniqueID := mustGetUUID()
    	tempObj := uniqueID
    
    	// Initialize erasure metadata.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  5. internal/grid/types.go

    // Value returns the underlying value.
    // Regular append mechanics should be observed.
    // If no value has been set yet, a new array is created.
    func (j *Array[T]) Value() []T {
    	if j.val == nil {
    		j.val = j.p.newA(10)
    	}
    	return j.val
    }
    
    // Append a value to the underlying array.
    // The returned Array is always the same as the one called.
    func (j *Array[T]) Append(v ...T) *Array[T] {
    	if j.val == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    			return
    		}
    
    		metrics = make([]MetricV2, 0, 5)
    		metrics = append(metrics, MetricV2{
    			Description: getHealLastActivityTimeMD(),
    			Value:       float64(time.Since(bgSeq.lastHealActivity)),
    		})
    		metrics = append(metrics, getObjectsScanned(bgSeq)...)
    		metrics = append(metrics, getHealedItems(bgSeq)...)
    		metrics = append(metrics, getFailedItems(bgSeq)...)
    		return
    	})
    	return mg
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  7. cmd/metacache-set_gen.go

    	// map header, size 19
    	// string "ID"
    	o = append(o, 0xde, 0x0, 0x13, 0xa2, 0x49, 0x44)
    	o = msgp.AppendString(o, z.ID)
    	// string "Bucket"
    	o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
    	o = msgp.AppendString(o, z.Bucket)
    	// string "BaseDir"
    	o = append(o, 0xa7, 0x42, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72)
    	o = msgp.AppendString(o, z.BaseDir)
    	// string "Prefix"
    	o = append(o, 0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:23:12 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  8. cmd/update.go

    // https://github.com/minio/minio/issues.
    func getUserAgent(mode string) string {
    	userAgentParts := []string{}
    	// Helper function to concisely append a pair of strings to a
    	// the user-agent slice.
    	uaAppend := func(p, q string) {
    		userAgentParts = append(userAgentParts, p, q)
    	}
    	uaAppend(MinioUAName, " (")
    	uaAppend("", runtime.GOOS)
    	uaAppend("; ", runtime.GOARCH)
    	if mode != "" {
    		uaAppend("; ", mode)
    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)
  9. internal/logger/targets.go

    	for _, cfg := range cfgs {
    		if cfg.Enabled {
    			t, err := http.New(cfg)
    			if err != nil {
    				errs = append(errs, err)
    			}
    			tgts = append(tgts, t)
    			newWebhooks = append(newWebhooks, t)
    		}
    	}
    
    	oldTargets, others := splitTargets(*targetList, types.TargetHTTP)
    	newWebhooks = append(newWebhooks, others...)
    
    	for i := range oldTargets {
    		currentTgt, ok := oldTargets[i].(*http.Target)
    		if !ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 22:56:14 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_gen.go

    		return
    	}
    	// string "ID"
    	o = append(o, 0xa2, 0x49, 0x44)
    	o = msgp.AppendBytes(o, (z.VersionID)[:])
    	// string "DDir"
    	o = append(o, 0xa4, 0x44, 0x44, 0x69, 0x72)
    	o = msgp.AppendBytes(o, (z.DataDir)[:])
    	// string "EcAlgo"
    	o = append(o, 0xa6, 0x45, 0x63, 0x41, 0x6c, 0x67, 0x6f)
    	o = msgp.AppendUint8(o, uint8(z.ErasureAlgorithm))
    	// string "EcM"
    	o = append(o, 0xa3, 0x45, 0x63, 0x4d)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top