Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for caps (0.15 sec)

  1. cmd/tier.go

    func (config *TierConfigMgr) Add(ctx context.Context, tier madmin.TierConfig, ignoreInUse bool) error {
    	config.Lock()
    	defer config.Unlock()
    
    	// check if tier name is in all caps
    	tierName := tier.Name
    	if tierName != strings.ToUpper(tierName) {
    		return errTierNameNotUppercase
    	}
    
    	// check if tier name already in use
    	if _, exists := config.isTierNameInUse(tierName); exists {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_gen.go

    				return
    			}
    		case "EcDist":
    			var zb0003 uint32
    			zb0003, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "ErasureDist")
    				return
    			}
    			if cap(z.ErasureDist) >= int(zb0003) {
    				z.ErasureDist = (z.ErasureDist)[:zb0003]
    			} else {
    				z.ErasureDist = make([]uint8, zb0003)
    			}
    			for za0003 := range z.ErasureDist {
    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)
  3. internal/grid/types.go

    			PutByteBuffer(*b)
    		}
    		*b = nil
    		return bytes, nil
    	}
    	val, bytes, err := msgp.ReadBytesZC(bytes)
    	if err != nil {
    		return bytes, err
    	}
    	if cap(*b) >= len(val) {
    		*b = (*b)[:len(val)]
    		copy(*b, val)
    	} else {
    		if cap(*b) == 0 && len(val) <= maxBufferSize {
    			*b = GetByteBufferCap(len(val))
    		} else {
    			PutByteBuffer(*b)
    			*b = make([]byte, 0, len(val))
    		}
    		in := *b
    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)
  4. cmd/untar.go

    			name = pathJoin(o.prefixAll, name)
    		}
    
    		// Do small files async
    		n++
    		if header.Size <= smallFileThreshold {
    			asyncWriters <- struct{}{}
    			b := poolBuf128k.Get().([]byte)
    			if cap(b) < int(header.Size) {
    				b = make([]byte, smallFileThreshold)
    			}
    			b = b[:header.Size]
    			if _, err := io.ReadFull(tarReader, b); err != nil {
    				return err
    			}
    			wg.Add(1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. cmd/iam.go

    	regUser
    	stsUser
    	svcUser
    )
    
    // LoadGroup - loads a specific group from storage, and updates the
    // memberships cache. If the specified group does not exist in
    // storage, it is removed from in-memory maps as well - this
    // simplifies the implementation for group removal. This is called
    // only via IAM notifications.
    func (sys *IAMSys) LoadGroup(ctx context.Context, objAPI ObjectLayer, group string) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  6. cmd/data-usage-cache_gen.go

    			}
    		case "cycleCompleted":
    			var zb0002 uint32
    			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "cycleCompleted")
    				return
    			}
    			if cap(z.cycleCompleted) >= int(zb0002) {
    				z.cycleCompleted = (z.cycleCompleted)[:zb0002]
    			} else {
    				z.cycleCompleted = make([]time.Time, zb0002)
    			}
    			for za0001 := range z.cycleCompleted {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 100.8K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    		}
    	}
    
    	var err error
    	testObjects := []struct {
    		parentBucket string
    		name         string
    		content      string
    		meta         map[string]string
    	}{
    		{testBuckets[0], "Asia-maps.png", "asis-maps", map[string]string{"content-type": "image/png"}},
    		{testBuckets[0], "Asia/India/India-summer-photos-1", "contentstring", nil},
    		{testBuckets[0], "Asia/India/Karnataka/Bangalore/Koramangala/pics", "contentstring", nil},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. internal/rest/client.go

    func exponentialBackoffWait(r *rand.Rand, unit, cap time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    			// Protect against integer overflow
    			attempt = 16
    		}
    		// sleep = random_between(unit, min(cap, base * 2 ** attempt))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  9. internal/grid/muxclient.go

    	}
    	m.respWait = responses // Route directly to output.
    	m.respMu.Unlock()
    
    	// Try to grab an initial block.
    	m.singleResp = false
    	m.RecvSeq = m.SendSeq // Sync
    	if cap(requests) > 0 {
    		m.outBlock = make(chan struct{}, cap(requests))
    	}
    	msg := message{
    		Op:         OpConnectMux,
    		Handler:    h,
    		Payload:    payload,
    		DeadlineMS: uint32(m.deadline.Milliseconds()),
    	}
    	msg.setZeroPayloadFlag()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  10. cmd/handler-utils.go

    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/minio/internal/mcontext"
    	xnet "github.com/minio/pkg/v2/net"
    	"golang.org/x/exp/maps"
    	"golang.org/x/exp/slices"
    )
    
    const (
    	copyDirective    = "COPY"
    	replaceDirective = "REPLACE"
    	accessDirective  = "ACCESS"
    )
    
    // Parses location constraint from the incoming reader.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
Back to top