Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 160 for KV (0.02 sec)

  1. internal/s3select/json/record.go

    	}
    
    	name = strings.ReplaceAll(name, "*", "__ALL__")
    	r.KVS = append(r.KVS, jstream.KV{Key: name, Value: v})
    	return r, nil
    }
    
    // WriteCSV - encodes to CSV data.
    func (r *Record) WriteCSV(writer io.Writer, opts sql.WriteCSVOpts) error {
    	var csvRecord []string
    	for _, kv := range r.KVS {
    		var columnValue string
    		switch val := kv.Value.(type) {
    		case float64:
    			columnValue = jsonFloat(val)
    		case string:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  2. internal/config/heal/heal.go

    }
    
    // DefaultKVS - default KV config for heal settings
    var DefaultKVS = config.KVS{
    	config.KV{
    		Key:   Bitrot,
    		Value: config.EnableOff,
    	},
    	config.KV{
    		Key:   Sleep,
    		Value: "250ms",
    	},
    	config.KV{
    		Key:   IOCount,
    		Value: "100",
    	},
    	config.KV{
    		Key:   DriveWorkers,
    		Value: "",
    	},
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. internal/s3select/sql/jsonpath.go

    		return v, false, nil
    	}
    
    	switch {
    	case p[0].Key != nil:
    		key := p[0].Key.keyString()
    
    		switch kvs := v.(type) {
    		case jstream.KVS:
    			for _, kv := range kvs {
    				if kv.Key == key {
    					return jsonpathEval(p[1:], kv.Value)
    				}
    			}
    			// Key not found - return nil result
    			return Missing{}, false, nil
    		case simdjson.Object:
    			elem := kvs.FindKey(key, nil)
    			if elem == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. internal/config/policy/opa/legacy.go

    	if opaArgs.URL == nil || opaArgs.URL.String() == "" {
    		// Do not enable if opaArgs was empty.
    		return
    	}
    	s[config.PolicyOPASubSys][config.Default] = config.KVS{
    		config.KV{
    			Key:   URL,
    			Value: opaArgs.URL.String(),
    		},
    		config.KV{
    			Key:   AuthToken,
    			Value: opaArgs.AuthToken,
    		},
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. internal/config/storageclass/legacy.go

    		// Do not enable storage-class if no settings found.
    		return
    	}
    	s[config.StorageClassSubSys][config.Default] = config.KVS{
    		config.KV{
    			Key:   ClassStandard,
    			Value: cfg.Standard.String(),
    		},
    		config.KV{
    			Key:   ClassRRS,
    			Value: cfg.RRS.String(),
    		},
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. pkg/monitoring/derived_gauge.go

    		api.WithDescription(description),
    		api.WithFloat64Callback(func(ctx context.Context, observer api.Float64Observer) error {
    			dm.mu.RLock()
    			defer dm.mu.RUnlock()
    			for kv, compute := range dm.attrs {
    				observer.Observe(compute(), api.WithAttributeSet(kv))
    			}
    			return nil
    		}))
    	if err != nil {
    		log.Fatalf("failed to create derived gauge: %v", err)
    	}
    	return dm
    }
    
    func (d *derivedGauge) Name() string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. internal/config/ilm/ilm.go

    	"github.com/minio/minio/internal/config"
    	"github.com/minio/pkg/v3/env"
    )
    
    // DefaultKVS default configuration values for ILM subsystem
    var DefaultKVS = config.KVS{
    	config.KV{
    		Key:   transitionWorkers,
    		Value: "100",
    	},
    	config.KV{
    		Key:   expirationWorkers,
    		Value: "100",
    	},
    }
    
    // Config represents the different configuration values for ILM subsystem
    type Config struct {
    	TransitionWorkers int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/net/http/header.go

    	var formattedVals []string
    	for _, kv := range kvs {
    		if !httpguts.ValidHeaderFieldName(kv.key) {
    			// This could be an error. In the common case of
    			// writing response headers, however, we have no good
    			// way to provide the error back to the server
    			// handler, so just drop invalid headers instead.
    			continue
    		}
    		for _, v := range kv.values {
    			v = headerNewlineToSpace.Replace(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. pkg/bootstrap/platform/azure.go

    	if at, ok := e.computeMetadata["tags"]; ok && len(at.(string)) > 0 {
    		for _, tag := range strings.Split(at.(string), ";") {
    			kv := strings.SplitN(tag, ":", 2)
    			switch len(kv) {
    			case 2:
    				tags[e.prefixName(kv[0])] = kv[1]
    			case 1:
    				tags[e.prefixName(kv[0])] = ""
    			}
    		}
    	}
    	return tags
    }
    
    func (e *azureEnv) azureLocation() string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/fix/typecheck.go

    					for _, e := range n.Elts {
    						if kv, ok := e.(*ast.KeyValueExpr); ok {
    							if typeof[kv.Key] == "" {
    								typeof[kv.Key] = kt
    							}
    							if typeof[kv.Value] == "" {
    								typeof[kv.Value] = vt
    							}
    						}
    					}
    				}
    			}
    			if typ := cfg.Type[t]; typ != nil && len(typ.Field) > 0 { // struct
    				for _, e := range n.Elts {
    					if kv, ok := e.(*ast.KeyValueExpr); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
Back to top