Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for caps (0.23 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	buf := make([]byte, 1024)
    	b.Write(buf[0:1])
    	var cap0 int
    	for i := 0; i < 5<<10; i++ {
    		b.Write(buf)
    		b.Read(buf)
    		if i == 0 {
    			cap0 = b.Cap()
    		}
    	}
    	cap1 := b.Cap()
    	// (*Buffer).grow allows for 2x capacity slop before sliding,
    	// so set our error threshold at 3x.
    	if cap1 > cap0*3 {
    		t.Errorf("buffer cap = %d; too big (grew from %d)", cap1, cap0)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	"fmt"
    	"net"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    type ConnectionsFilter struct {
    	Namespace string
    	Direction string
    	Raw       bool
    }
    
    func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error {
    	d := c.ztunnelDump
    	workloads := maps.Values(d.WorkloadState)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  4. cmd/generic-handlers.go

    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio-go/v7/pkg/s3utils"
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio/internal/grid"
    	xnet "github.com/minio/pkg/v2/net"
    	"golang.org/x/exp/maps"
    	"golang.org/x/exp/slices"
    
    	"github.com/minio/minio/internal/amztime"
    	"github.com/minio/minio/internal/config/dns"
    	"github.com/minio/minio/internal/crypto"
    	xhttp "github.com/minio/minio/internal/http"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/arm64.go

    	switch op {
    	case arm64.AVTBL, arm64.AVTBX, arm64.AVMOVQ:
    		return true
    	}
    	return false
    }
    
    // IsARM64CASP reports whether the op (as defined by an arm64.A*
    // constant) is one of the CASP-like instructions, and its 2nd
    // destination is a register pair that require special handling.
    func IsARM64CASP(op obj.As) bool {
    	switch op {
    	case arm64.ACASPD, arm64.ACASPW:
    		return true
    	}
    	return false
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
  6. internal/handlers/forwarder.go

    	if f.RoundTripper == nil {
    		f.RoundTripper = http.DefaultTransport
    	}
    
    	return f
    }
    
    type bufPool struct {
    	sz   int
    	pool sync.Pool
    }
    
    func (b *bufPool) Put(buf []byte) {
    	if cap(buf) < b.sz || cap(buf) > b.sz*2 {
    		// Buffer too small or will likely leak memory after being expanded.
    		// Drop it.
    		return
    	}
    	b.pool.Put(&buf)
    }
    
    func (b *bufPool) Get() []byte {
    	bufp := b.pool.Get().(*[]byte)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 07 05:42:10 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. cmd/sts-handlers.go

    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    
    // AssumeRoleWithCertificate implements user authentication with client certificates.
    // It verifies the client-provided X.509 certificate, maps the certificate to an S3 policy
    // and returns temp. S3 credentials to the client.
    //
    // API endpoint: https://minio:9000?Action=AssumeRoleWithCertificate&Version=2011-06-15
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  8. cmd/admin-handlers.go

    func anonymizeHost(hostAnonymizer map[string]string, endpoint Endpoint, poolNum int, srvrNum int) {
    	if len(endpoint.Host) == 0 {
    		return
    	}
    
    	currentURL := endpoint.String()
    
    	// mapIfNotPresent - Maps the given key to the value only if the key is not present in the map
    	mapIfNotPresent := func(m map[string]string, key string, val string) {
    		_, found := m[key]
    		if !found {
    			m[key] = val
    		}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. internal/grid/grid.go

    var PutByteBuffer = func(b []byte) {
    	if cap(b) >= biggerBufMin && cap(b) < biggerBufMax {
    		internal32KByteBuffer.Put(&b)
    		return
    	}
    	if cap(b) >= minBufferSize && cap(b) < biggerBufMin {
    		internalByteBuffer.Put(&b)
    		return
    	}
    }
    
    // readAllInto reads from r and appends to b until an error or EOF and returns the data it read.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 02 15:56:18 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/bytes/buffer.go

    func (b *Buffer) Len() int { return len(b.buf) - b.off }
    
    // Cap returns the capacity of the buffer's underlying byte slice, that is, the
    // total space allocated for the buffer's data.
    func (b *Buffer) Cap() int { return cap(b.buf) }
    
    // Available returns how many bytes are unused in the buffer.
    func (b *Buffer) Available() int { return cap(b.buf) - len(b.buf) }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
Back to top