Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newServerConfig (0.08 sec)

  1. cmd/config-migrate.go

    	configFiles := []string{
    		getConfigFile(),
    		getConfigFile() + ".deprecated",
    		configFile,
    	}
    
    	newServerCfg := func() (config.Config, error) {
    		// Initialize server config.
    		srvCfg := newServerConfig()
    
    		return srvCfg, saveServerConfig(ctx, objAPI, srvCfg)
    	}
    
    	var data []byte
    	var err error
    
    	cfg := &serverConfigV33{}
    	for _, cfgFile := range configFiles {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. cmd/config-current.go

    		KeysHelp:        help,
    	}, nil
    }
    
    func newServerConfig() config.Config {
    	return config.New()
    }
    
    // newSrvConfig - initialize a new server config, saves env parameters if
    // found, otherwise use default parameters
    func newSrvConfig(objAPI ObjectLayer) error {
    	// Initialize server config.
    	srvCfg := newServerConfig()
    
    	// hold the mutex lock before a new config is assigned.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. cmd/admin-handlers-config-kv.go

    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    	cfg := newServerConfig()
    	if _, err = cfg.ReadConfig(bytes.NewReader(kvBytes)); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	if err = validateConfig(ctx, cfg, ""); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top