Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for keyValue (0.08 sec)

  1. cmd/iam-etcd-store.go

    	"github.com/puzpuzpuz/xsync/v3"
    	"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)
  2. internal/s3select/jstream/decoder_test.go

    		t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value)
    	}
    	if err := decoder.Err(); err != nil {
    		t.Fatalf("decoder error: %s", err)
    	}
    	if kvcounter != 0 {
    		t.Fatalf("expected 0 keyvalue items, got %d", kvcounter)
    	}
    	if counter != 15 {
    		t.Fatalf("expected 15 items, got %d", counter)
    	}
    
    	// test at depth level 1 w/ emitKV
    	counter = 0
    	kvcounter = 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. internal/s3select/jstream/decoder.go

    		// next token must be ',' or '}'
    		switch c = d.skipSpaces(); c {
    		case '}':
    			goto out
    		case ',':
    			c = d.skipSpaces()
    			goto scan
    		default:
    			err = d.mkError(ErrSyntax, "after object key:value pair")
    			goto out
    		}
    	}
    
    out:
    	d.depth--
    	return obj, err
    }
    
    // object (ordered) accept valid JSON array value
    func (d *Decoder) objectOrdered() (KVS, error) {
    	d.depth++
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. cmd/postpolicyform.go

    	if err != nil {
    		return PostPolicyForm{}, err
    	}
    
    	// Parse conditions.
    	for _, val := range rawPolicy.Conditions {
    		switch condt := val.(type) {
    		case map[string]interface{}: // Handle key:value map types.
    			for k, v := range condt {
    				if !isString(v) { // Pre-check value type.
    					// All values must be of type string.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top