Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for lookupConfigs (0.11 sec)

  1. cmd/config-current.go

    			if _, err := storageclass.LookupConfig(s[config.StorageClassSubSys][config.Default], setDriveCount); err != nil {
    				return err
    			}
    		}
    	case config.CompressionSubSys:
    		if _, err := compress.LookupConfig(s[config.CompressionSubSys][config.Default]); err != nil {
    			return err
    		}
    	case config.HealSubSys:
    		if _, err := heal.LookupConfig(s[config.HealSubSys][config.Default]); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  2. internal/config/api/api.go

    	type Alias Config
    	aux := &struct {
    		*Alias
    	}{
    		Alias: (*Alias)(sCfg),
    	}
    	return json.Unmarshal(data, &aux)
    }
    
    // LookupConfig - lookup api config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	deprecatedKeys := []string{
    		apiReadyDeadline,
    		apiRequestsDeadline,
    		"extend_list_cache_life",
    		apiReplicationWorkers,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 16 08:43:49 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. internal/config/identity/openid/openid.go

    	for k, v := range r.ProviderCfgs {
    		cfg.ProviderCfgs[k] = v
    	}
    	for k, v := range r.roleArnPolicyMap {
    		cfg.roleArnPolicyMap[k] = v
    	}
    	return cfg
    }
    
    // LookupConfig lookup jwks from config, override with any ENVs.
    func LookupConfig(s config.Config, transport http.RoundTripper, closeRespFn func(io.ReadCloser), serverRegion string) (c Config, err error) {
    	openIDClientTransport := http.DefaultTransport
    	if transport != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. internal/config/identity/plugin/config.go

    	serviceMetrics *metrics
    }
    
    // Enabled returns if AuthNPlugin is enabled.
    func Enabled(kvs config.KVS) bool {
    	return kvs.Get(URL) != ""
    }
    
    // LookupConfig lookup AuthNPlugin from config, override with any ENVs.
    func LookupConfig(kv config.KVS, transport *http.Transport, closeRespFn func(io.ReadCloser), serverRegion string) (Args, error) {
    	args := Args{}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. internal/config/storageclass/storage-class.go

    	case 1:
    		return 0
    	case 3, 2:
    		return 1
    	case 4, 5:
    		return 2
    	case 6, 7:
    		return 3
    	default:
    		return 4
    	}
    }
    
    // LookupConfig - lookup storage class config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS, setDriveCount int) (cfg Config, err error) {
    	cfg = Config{}
    
    	deprecatedKeys := []string{
    		"dma",
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. cmd/format-erasure.go

    // It will attempt to read it from env variable and fall back to drives/2.
    func ecDrivesNoConfig(setDriveCount int) (int, error) {
    	sc, err := storageclass.LookupConfig(config.KVS{}, setDriveCount)
    	if err != nil {
    		return 0, err
    	}
    	return sc.GetParityForSC(storageclass.STANDARD), nil
    }
    
    // Initialize a new set of set formats which will be written to all disks.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top