Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for NewStringSet (0.12 sec)

  1. cmd/endpoint_contrib_test.go

    	defer func() {
    		globalDomainIPs = tempGlobalDomainIPs
    	}()
    
    	ipv4TestCases := []struct {
    		endPoints      set.StringSet
    		expectedResult set.StringSet
    	}{
    		{set.NewStringSet(), set.NewStringSet()},
    		{set.CreateStringSet("localhost"), set.NewStringSet()},
    		{set.CreateStringSet("localhost", "10.0.0.1"), set.CreateStringSet("10.0.0.1:9000")},
    		{set.CreateStringSet("localhost:9001", "10.0.0.1"), set.CreateStringSet("10.0.0.1:9000")},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 30 15:50:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. cmd/net.go

    }
    
    func mustGetLocalLoopbacks() (ipList set.StringSet) {
    	ipList = set.NewStringSet()
    	for _, ip := range mustGetLocalIPs() {
    		if ip != nil && ip.IsLoopback() {
    			ipList.Add(ip.String())
    		}
    	}
    	return
    }
    
    // mustGetLocalIP4 returns IPv4 addresses of localhost.  It panics on error.
    func mustGetLocalIP4() (ipList set.StringSet) {
    	ipList = set.NewStringSet()
    	for _, ip := range mustGetLocalIPs() {
    		if ip.To4() != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. cmd/endpoint.go

    	}
    
    	for i, endpoints := range poolEndpoints {
    		// Here all endpoints are URL style.
    		endpointPathSet := set.NewStringSet()
    		localEndpointCount := 0
    		localServerHostSet := set.NewStringSet()
    		localPortSet := set.NewStringSet()
    
    		for _, endpoint := range endpoints {
    			endpointPathSet.Add(endpoint.Path)
    			if endpoint.IsLocal && endpoint.Host != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  4. internal/event/config.go

    	type filterRuleList FilterRuleList
    	rules := filterRuleList{}
    	if err := d.DecodeElement(&rules, &start); err != nil {
    		return err
    	}
    
    	// FilterRuleList must have only one prefix and/or suffix.
    	nameSet := set.NewStringSet()
    	for _, rule := range rules.Rules {
    		if nameSet.Contains(rule.Name) {
    			if rule.Name == "prefix" {
    				return &ErrFilterNamePrefix{}
    			}
    
    			return &ErrFilterNameSuffix{}
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  5. internal/http/listener_test.go

    	return tls.X509KeyPair(certPEMBlock, keyPEMBlock)
    }
    
    func getNextPort() string {
    	return strconv.Itoa(int(atomic.AddUint32(&serverPort, 1)))
    }
    
    func getNonLoopBackIP(t *testing.T) string {
    	localIP4 := set.NewStringSet()
    	addrs, err := net.InterfaceAddrs()
    	if err != nil {
    		t.Fatalf("%s.  Unable to get IP addresses of this host.", err)
    	}
    
    	for _, addr := range addrs {
    		var ip net.IP
    		switch v := addr.(type) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. cmd/postpolicyform.go

    // keys.
    func sanitizePolicy(r io.Reader) (io.Reader, error) {
    	var buf bytes.Buffer
    	e := json.NewEncoder(&buf)
    	d := jstream.NewDecoder(r, 0).ObjectAsKVS().MaxDepth(10)
    	sset := set.NewStringSet()
    	for mv := range d.Stream() {
    		var kvs jstream.KVS
    		if mv.ValueType == jstream.Object {
    			// This is a JSON object type (that preserves key order)
    			kvs = mv.Value.(jstream.KVS)
    			for _, kv := range kvs {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. cmd/bootstrap-peer-server.go

    			incorrectConfigs = nil
    		}
    	}
    	return nil
    }
    
    func newBootstrapRESTClients(endpointServerPools EndpointServerPools, gm *grid.Manager) []*bootstrapRESTClient {
    	seenClient := set.NewStringSet()
    	var clnts []*bootstrapRESTClient
    	for _, ep := range endpointServerPools {
    		for _, endpoint := range ep.Endpoints {
    			if endpoint.IsLocal {
    				continue
    			}
    			if seenClient.Contains(endpoint.Host) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. internal/config/identity/openid/openid.go

    			pkMap:   map[string]interface{}{},
    		},
    		roleArnPolicyMap: map[arn.ARN]string{},
    		transport:        openIDClientTransport,
    		closeRespFn:      closeRespFn,
    	}
    
    	seenClientIDs := set.NewStringSet()
    
    	deprecatedKeys := []string{JwksURL}
    
    	// remove this since we have removed support for this already.
    	for k := range s[config.IdentityOpenIDSubSys] {
    		for _, dk := range deprecatedKeys {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    	numSites := len(sris)
    	allBuckets := set.NewStringSet() // across sites
    	allUsers := set.NewStringSet()
    	allUserWPolicies := set.NewStringSet()
    	allGroups := set.NewStringSet()
    	allGroupWPolicies := set.NewStringSet()
    	allILMExpiryRules := set.NewStringSet()
    
    	allPolicies := set.NewStringSet()
    	for _, sri := range sris {
    		for b := range sri.Buckets {
    			allBuckets.Add(b)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  10. cmd/iam-etcd-store.go

    	"go.etcd.io/etcd/api/v3/mvccpb"
    	etcd "go.etcd.io/etcd/client/v3"
    )
    
    var defaultContextTimeout = 30 * time.Second
    
    func etcdKvsToSet(prefix string, kvs []*mvccpb.KeyValue) set.StringSet {
    	users := set.NewStringSet()
    	for _, kv := range kvs {
    		user := extractPathPrefixAndSuffix(string(kv.Key), prefix, path.Base(string(kv.Key)))
    		users.Add(user)
    	}
    	return users
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top