Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for LookupConfig (0.21 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 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  2. internal/config/drive/drive.go

    func (c *Config) GetMaxTimeout() time.Duration {
    	configLk.RLock()
    	defer configLk.RUnlock()
    
    	return getMaxTimeout(c.MaxTimeout)
    }
    
    // LookupConfig - lookup config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	cfg = Config{
    		MaxTimeout: 30 * time.Second,
    	}
    	if err = config.CheckValidKeys(config.DriveSubSys, kvs, DefaultKVS); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. internal/config/ilm/ilm.go

    	},
    }
    
    // Config represents the different configuration values for ILM subsystem
    type Config struct {
    	TransitionWorkers int
    	ExpirationWorkers int
    }
    
    // LookupConfig - lookup ilm config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	cfg = Config{
    		TransitionWorkers: 100,
    		ExpirationWorkers: 100,
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. internal/config/browser/browser.go

    	browseCfg.HSTSIncludeSubdomains = newCfg.HSTSIncludeSubdomains
    	browseCfg.HSTSPreload = newCfg.HSTSPreload
    	browseCfg.ReferrerPolicy = newCfg.ReferrerPolicy
    }
    
    // LookupConfig - lookup api config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	cfg = Config{
    		CSPPolicy:             env.Get(EnvBrowserCSPPolicy, kvs.GetWithDefault(browserCSPPolicy, DefaultKVS)),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. internal/config/scanner/scanner.go

    		HiddenIfEmpty: true,
    	},
    	// Deprecated Oct 2022
    	config.KV{
    		Key:           Cycle,
    		Value:         "",
    		HiddenIfEmpty: true,
    	},
    }
    
    // LookupConfig - lookup config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	cfg = Config{
    		ExcessVersions: 100,
    		ExcessFolders:  50000,
    		IdleMode:       0, // Default is on
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. internal/config/heal/heal.go

    		return -1, fmt.Errorf("minimum bitrot cycle is %d month(s)", minimumBitrotCycleInMonths)
    	}
    
    	return time.Duration(months) * 30 * 24 * time.Hour, nil
    }
    
    // LookupConfig - lookup config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	if err = config.CheckValidKeys(config.HealSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  7. 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,
    		"extend_list_cache_life",
    		apiReplicationWorkers,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  8. 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{}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
  9. 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",
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. cmd/iam.go

    	}
    
    	authNPluginCfg, err := idplugin.LookupConfig(s[config.IdentityPluginSubSys][config.Default],
    		NewHTTPTransport(), xhttp.DrainBody, globalSite.Region)
    	if err != nil {
    		iamLogIf(ctx, fmt.Errorf("Unable to initialize AuthNPlugin: %w", err), logger.WarningKind)
    	}
    
    	setGlobalAuthNPlugin(idplugin.New(GlobalContext, authNPluginCfg))
    
    	authZPluginCfg, err := polplugin.LookupConfig(s, GetDefaultConnSettings(), xhttp.DrainBody)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top