Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for globalServerConfig (0.21 sec)

  1. cmd/config-current_test.go

    		t.Errorf("Expecting region `us-east-1` found %s", globalSite.Region)
    	}
    
    	// Set new region and verify.
    	config.SetRegion(globalServerConfig, "us-west-1")
    	site, err := config.LookupSite(
    		globalServerConfig[config.SiteSubSys][config.Default],
    		globalServerConfig[config.RegionSubSys][config.Default],
    	)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if site.Region != "us-west-1" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Dec 19 19:10:14 GMT 2022
    - 2K bytes
    - Viewed (0)
  2. cmd/admin-handlers-idp-config.go

    		return
    	}
    
    	var cfgList []madmin.IDPListItem
    	var err error
    	switch idpCfgType {
    	case madmin.OpenidIDPCfg:
    		cfg := globalServerConfig.Clone()
    		cfgList, err = globalIAMSys.OpenIDConfig.GetConfigList(cfg)
    	case madmin.LDAPIDPCfg:
    		cfg := globalServerConfig.Clone()
    		cfgList, err = globalIAMSys.LDAPConfig.GetConfigList(cfg)
    
    	default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. cmd/config-current.go

    		},
    	}
    
    	config.RegisterHelpDeprecatedSubSys(deprecatedHelpKVMap)
    }
    
    var (
    	// globalServerConfig server config.
    	globalServerConfig   config.Config
    	globalServerConfigMu sync.RWMutex
    )
    
    func validateSubSysConfig(ctx context.Context, s config.Config, subSys string, objAPI ObjectLayer) error {
    	switch subSys {
    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)
  4. cmd/admin-handlers-config-kv.go

    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.ConfigUpdateAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	cfg := globalServerConfig.Clone()
    	vars := mux.Vars(r)
    	key := vars["key"]
    
    	var subSys, target string
    	{
    		ws := strings.SplitN(key, madmin.SubSystemSeparator, 2)
    		subSys = ws[0]
    		if len(ws) == 2 {
    			if ws[1] == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  5. cmd/config.go

    	bootstrapTraceMsg("lookup the configuration")
    
    	// Override any values from ENVs.
    	lookupConfigs(srvCfg, objAPI)
    
    	// hold the mutex lock before a new config is assigned.
    	globalServerConfigMu.Lock()
    	globalServerConfig = srvCfg
    	globalServerConfigMu.Unlock()
    
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Aug 23 10:07:06 GMT 2023
    - 6K bytes
    - Viewed (0)
  6. cmd/handler-utils_test.go

    		// Test case - 4
    		// In case of invalid XML request body ErrMalformedXML is returned.
    		{malformedReq, globalMinioDefaultRegion, ErrMalformedXML},
    	}
    
    	for i, testCase := range testCases {
    		config.SetRegion(globalServerConfig, testCase.serverConfigRegion)
    		_, actualCode := parseLocationConstraint(testCase.request)
    		if testCase.expectedCode != actualCode {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    		return err
    	}
    
    	// Set a default region.
    	config.SetRegion(globalServerConfig, bucketLocation)
    
    	applyDynamicConfigForSubSys(context.Background(), obj, globalServerConfig, config.StorageClassSubSys)
    
    	// Save config.
    	return saveServerConfig(context.Background(), obj, globalServerConfig)
    }
    
    // Deleting the temporary backend and stopping the server.
    func (testServer TestServer) Stop() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  8. cmd/iam.go

    func (sys *IAMSys) Init(ctx context.Context, objAPI ObjectLayer, etcdClient *etcd.Client, iamRefreshInterval time.Duration) {
    	bootstrapTraceMsg("IAM initialization started")
    	globalServerConfigMu.RLock()
    	s := globalServerConfig
    	globalServerConfigMu.RUnlock()
    
    	openidConfig, err := openid.LookupConfig(s,
    		NewHTTPTransport(), xhttp.DrainBody, globalSite.Region)
    	if err != nil {
    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