Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getURLScheme (0.17 sec)

  1. cmd/api-response_test.go

    			}
    		})
    	}
    }
    
    // Tests getURLScheme function behavior.
    func TestGetURLScheme(t *testing.T) {
    	tls := false
    	gotScheme := getURLScheme(tls)
    	if gotScheme != httpScheme {
    		t.Errorf("Expected %s, got %s", httpScheme, gotScheme)
    	}
    	tls = true
    	gotScheme = getURLScheme(tls)
    	if gotScheme != httpsScheme {
    		t.Errorf("Expected %s, got %s", httpsScheme, gotScheme)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  2. cmd/net.go

    		ipList = append(ipList, mustGetLocalIP6().ToSlice()...)
    	} else {
    		ipList = []string{globalMinioConsoleHost}
    	}
    
    	for _, ip := range ipList {
    		endpoint := fmt.Sprintf("%s://%s", getURLScheme(globalIsTLS), net.JoinHostPort(ip, globalMinioConsolePort))
    		consoleEndpoints = append(consoleEndpoints, endpoint)
    	}
    
    	return consoleEndpoints
    }
    
    func getAPIEndpoints() (apiEndpoints []string) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/api-response.go

    type PostResponse struct {
    	Bucket   string
    	Key      string
    	ETag     string
    	Location string
    }
    
    // returns "https" if the tls boolean is true, "http" otherwise.
    func getURLScheme(tls bool) string {
    	if tls {
    		return httpsScheme
    	}
    	return httpScheme
    }
    
    // getObjectLocation gets the fully qualified URL of an object.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  4. cmd/common-main.go

    		// This will save users from providing a certificate with IP or FQDN SAN that points to the local host.
    		os.Setenv("CONSOLE_MINIO_SERVER", fmt.Sprintf("%s://127.0.0.1:%s", getURLScheme(globalIsTLS), globalMinioPort))
    	}
    	if value := env.Get(config.EnvMinIOLogQueryURL, ""); value != "" {
    		os.Setenv("CONSOLE_LOG_QUERY_URL", value)
    		if value := env.Get(config.EnvMinIOLogQueryAuthToken, ""); value != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Apr 17 00:34:45 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  5. cmd/endpoint.go

    					Host:   endpoint.Host,
    				}
    				return u.String()
    			}
    		}
    	}
    	host := globalMinioHost
    	if host == "" {
    		host = sortIPs(localIP4.ToSlice())[0]
    	}
    	return fmt.Sprintf("%s://%s", getURLScheme(globalIsTLS), net.JoinHostPort(host, globalMinioPort))
    }
    
    // LocalDisksPaths returns the disk paths of the local disks
    func (l EndpointServerPools) LocalDisksPaths() []string {
    	var disks []string
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top