Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for srvCfg (0.09 sec)

  1. cmd/config-current.go

    func newSrvConfig(objAPI ObjectLayer) error {
    	// Initialize server config.
    	srvCfg := newServerConfig()
    
    	// hold the mutex lock before a new config is assigned.
    	globalServerConfigMu.Lock()
    	globalServerConfig = srvCfg
    	globalServerConfigMu.Unlock()
    
    	// Save config into file.
    	return saveServerConfig(GlobalContext, objAPI, srvCfg)
    }
    
    func getValidConfig(objAPI ObjectLayer) (config.Config, error) {
    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/config.go

    			cp[subSys][tgt] = ckvs
    		}
    	}
    
    	return cp
    }
    
    // New - initialize a new server config.
    func New() Config {
    	srvCfg := make(Config)
    	for _, k := range SubSystems.ToSlice() {
    		srvCfg[k] = map[string]KVS{}
    		srvCfg[k][Default] = DefaultKVS[k]
    	}
    	return srvCfg
    }
    
    // Target signifies an individual target
    type Target struct {
    	SubSystem string
    	KVS       KVS
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top