Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LookupSite (0.07 sec)

  1. 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)
  2. 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