Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for map (0.13 sec)

  1. callbacks/visit_map_test.go

    chenrui <******@****.***> 1647532411 +0800
    Go
    - Registered: Sun Feb 25 09:35:10 GMT 2024
    - Last Modified: Thu Mar 17 15:53:31 GMT 2022
    - 780 bytes
    - Viewed (0)
  2. cmd/data-usage-utils.go

    	ReplicationFailedCountV1 uint64 `json:"objectsFailedReplicationCount"`
    
    	ObjectsCount            uint64                           `json:"objectsCount"`
    	ObjectSizesHistogram    map[string]uint64                `json:"objectsSizesHistogram"`
    	ObjectVersionsHistogram map[string]uint64                `json:"objectsVersionsHistogram"`
    	VersionsCount           uint64                           `json:"versionsCount"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. cmd/metrics-realtime.go

    	// ByHost is a shallow reference, so careful about sharing.
    	m.ByHost = map[string]madmin.Metrics{byHostName: m.Aggregated}
    	m.Hosts = append(m.Hosts, byHostName)
    
    	return m
    }
    
    func collectLocalDisksMetrics(disks map[string]struct{}) map[string]madmin.DiskMetric {
    	objLayer := newObjectLayerFn()
    	if objLayer == nil {
    		return nil
    	}
    
    	metrics := make(map[string]madmin.DiskMetric)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 10 16:28:08 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/pod_cache.go

    type PodNetnsCache interface {
    	ReadCurrentPodSnapshot() map[string]WorkloadInfo
    }
    
    // Hold a cache of node local pods with their netns
    // if we don't know the netns, the pod will still be here with a nil netns.
    type podNetnsCache struct {
    	openNetns func(nspath string) (NetnsCloser, error)
    
    	currentPodCache map[string]WorkloadInfo
    	mu              sync.RWMutex
    }
    
    type WorkloadInfo struct {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. internal/crypto/sse_test.go

    		t.Errorf("SSEC's string method returns wrong domain: got '%s' - want '%s'", domain, Domain)
    	}
    }
    
    var ssecUnsealObjectKeyTests = []struct {
    	Headers        http.Header
    	Bucket, Object string
    	Metadata       map[string]string
    
    	ExpectedErr error
    }{
    	{ // 0 - Valid HTTP headers and valid metadata entries for bucket/object
    		Headers: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{"AES256"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/godefs.go

    	fmt.Fprintf(&buf, "\n")
    
    	override := make(map[string]string)
    
    	// Allow source file to specify override mappings.
    	// For example, the socket data structures refer
    	// to in_addr and in_addr6 structs but we want to be
    	// able to treat them as byte arrays, so the godefs
    	// inputs in package syscall say
    	//
    	//	// +godefs map struct_in_addr [4]byte
    	//	// +godefs map struct_in_addr6 [16]byte
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  7. cmd/handler-utils_test.go

    func TestExtractMetadataHeaders(t *testing.T) {
    	testCases := []struct {
    		header     http.Header
    		metadata   map[string]string
    		shouldFail bool
    	}{
    		// Validate if there a known 'content-type'.
    		{
    			header: http.Header{
    				"Content-Type": []string{"image/png"},
    			},
    			metadata: map[string]string{
    				"content-type": "image/png",
    			},
    			shouldFail: false,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  8. internal/config/identity/openid/jwt_test.go

    		ClientSecret: "WNGvKVyyNmXq0TraSvjaDN9CtpFgx35IXtGEffMCPR0",
    	}
    	provider.JWKS.URL = u1
    	cfg := Config{
    		Enabled: true,
    		pubKeys: pubKeys,
    		arnProviderCfgsMap: map[arn.ARN]*providerCfg{
    			DummyRoleARN: &provider,
    		},
    		ProviderCfgs: map[string]*providerCfg{
    			"1": &provider,
    		},
    		closeRespFn: func(rc io.ReadCloser) {
    			rc.Close()
    		},
    	}
    
    	var claims jwtgo.MapClaims
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. clause/benchmarks_test.go

    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils/tests"
    )
    
    func BenchmarkSelect(b *testing.B) {
    	user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy)
    
    	for i := 0; i < b.N; i++ {
    		stmt := gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Oct 07 12:14:14 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-utils_test.go

    func Test_hashDeterministicString(t *testing.T) {
    	tests := []struct {
    		name string
    		arg  map[string]string
    	}{
    		{
    			name: "zero",
    			arg:  map[string]string{},
    		},
    		{
    			name: "nil",
    			arg:  nil,
    		},
    		{
    			name: "one",
    			arg:  map[string]string{"key": "value"},
    		},
    		{
    			name: "several",
    			arg: map[string]string{
    				xhttp.AmzRestore:                 "FAILED",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 02 14:49:24 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top