Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Kharin (0.16 sec)

  1. internal/handlers/proxy.go

    		// Only grab the first (client) address. Note that '192.168.0.1,
    		// 10.1.1.1' is a valid key for X-Forwarded-For where addresses after
    		// the first may represent forwarding proxies earlier in the chain.
    		s := strings.Index(fwd, ", ")
    		if s == -1 {
    			s = len(fwd)
    		}
    		addr = fwd[:s]
    	} else if fwd := r.Header.Get(xRealIP); fwd != "" {
    		// X-Real-IP should only contain one IP address (the client making the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  2. tests/count_test.go

    	}
    
    	DB.Model(&User{}).Where("name = ?", user1.Name).Count(&count1).Or("name in ?", []string{user2.Name, user3.Name}).Count(&count2)
    	if count1 != 1 || count2 != 3 {
    		t.Errorf("multiple count in chain should works")
    	}
    
    	tx := DB.Model(&User{}).Where("name = ?", user1.Name).Session(&gorm.Session{})
    	tx.Count(&count1)
    	tx.Or("name in ?", []string{user2.Name, user3.Name}).Count(&count2)
    	if count1 != 1 || count2 != 3 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  3. cmd/metacache-server-pool.go

    				o.debugln("Resuming", o)
    				entries, err = z.serverPools[o.pool].sets[o.set].streamMetadataParts(ctx, *o)
    				entries.reuse = true // We read from stream and are not sharing results.
    				if err == nil {
    					return entries, nil
    				}
    			} else {
    				err = fmt.Errorf("invalid pool/set")
    				o.pool, o.set = 0, 0
    			}
    		}
    		if IsErr(err, []error{
    			nil,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables.go

    	log.Info("configuring host-level iptables rules (healthchecks, etc)")
    
    	iptablesBuilder := builder.NewIptablesRuleBuilder(ipbuildConfig(cfg.cfg))
    
    	// For easier cleanup, insert a jump into an owned chain
    	// -A POSTROUTING -p tcp -j ISTIO_POSTRT
    	iptablesBuilder.AppendRule(
    		iptableslog.UndefinedCommand, iptablesconstants.POSTROUTING, iptablesconstants.NAT,
    		"-j", ChainHostPostrouting,
    	)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher.go

    	mux.HandleFunc(pconstants.CNIAddEventPath, s.handleAddEvent)
    	return s
    }
    
    func (s *CniPluginServer) Stop() {
    	s.cniListenServerCancel()
    }
    
    // Start starts up a UDS server which receives events from the CNI chain plugin.
    func (s *CniPluginServer) Start() error {
    	if s.sockAddress == "" {
    		return fmt.Errorf("no socket address provided")
    	}
    	log.Info("Start a listen server for CNI plugin events")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. istioctl/pkg/clioptions/central.go

    	CertDir string
    
    	// Timeout is how long to wait before giving up on XDS
    	Timeout time.Duration
    
    	// InsecureSkipVerify skips client verification the server's certificate chain and host name.
    	InsecureSkipVerify bool
    
    	// XDSSAN is the expected Subject Alternative Name of the XDS server
    	XDSSAN string
    
    	// Plaintext forces plain text communication (for talking to port 15010)
    	Plaintext bool
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jun 06 03:39:27 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  7. cmd/metrics-realtime.go

    		} else {
    			m.Aggregated.CPU.LoadStat = loadStat
    		}
    	}
    	// Add types...
    
    	// 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 {
    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)
  8. internal/config/certs.go

    	var data []byte
    	if data, err = os.ReadFile(certFile); err != nil {
    		return nil, err
    	}
    
    	// Trimming leading and tailing white spaces.
    	data = bytes.TrimSpace(data)
    
    	// Parse all certs in the chain.
    	current := data
    	for len(current) > 0 {
    		var pemBlock *pem.Block
    		if pemBlock, current = pem.Decode(current); pemBlock == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  9. cmd/metacache.go

    	metacacheBlockSize = 5000
    
    	// metacacheSharePrefix controls whether prefixes on dirty paths are always shared.
    	// This will make `test/a` and `test/b` share listings if they are concurrent.
    	// Enabling this will make cache sharing more likely and cause less IO,
    	// but may cause additional latency to some calls.
    	metacacheSharePrefix = false
    )
    
    //go:generate msgp -file $GOFILE -unexported
    
    // metacache contains a tracked cache entry.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  10. chainable_api.go

    	} else {
    		tx.Statement.Omits = columns
    	}
    	return
    }
    
    // Where add conditions
    //
    // See the [docs] for details on the various formats that where clauses can take. By default, where clauses chain with AND.
    //
    //	// Find the first user with name jinzhu
    //	db.Where("name = ?", "jinzhu").First(&user)
    //	// Find the first user with name jinzhu and age 20
    //	db.Where(&User{Name: "jinzhu", Age: 20}).First(&user)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
Back to top