Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LookupSite (0.12 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" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. cmd/config-current.go

    	globalServerConfigMu sync.RWMutex
    )
    
    func validateSubSysConfig(ctx context.Context, s config.Config, subSys string, objAPI ObjectLayer) error {
    	switch subSys {
    	case config.SiteSubSys:
    		if _, err := config.LookupSite(s[config.SiteSubSys][config.Default], s[config.RegionSubSys][config.Default]); err != nil {
    			return err
    		}
    	case config.APISubSys:
    		if _, err := api.LookupConfig(s[config.APISubSys][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)
  3. internal/config/config.go

    // letter. At least 2 characters long.
    var validSiteNameRegex = regexp.MustCompile("^[a-z][a-z0-9-]+$")
    
    // LookupSite - get site related configuration. Loads configuration from legacy
    // region sub-system as well.
    func LookupSite(siteKV KVS, regionKV KVS) (s Site, err error) {
    	if err = CheckValidKeys(SiteSubSys, siteKV, DefaultSiteKVS); err != nil {
    		return
    	}
    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