Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getAPIEndpoints (0.23 sec)

  1. cmd/event-notification.go

    		"x-amz-id-2":       args.RespElements["nodeId"],
    		"x-minio-origin-endpoint": func() string {
    			if globalMinioEndpoint != "" {
    				return globalMinioEndpoint
    			}
    			return getAPIEndpoints()[0]
    		}(), // MinIO specific custom elements.
    	}
    
    	// Add deployment as part of response elements.
    	respElements["x-minio-deployment-id"] = globalDeploymentID()
    	if args.RespElements["content-length"] != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. cmd/net.go

    		endpoint := fmt.Sprintf("%s://%s", getURLScheme(globalIsTLS), net.JoinHostPort(ip, globalMinioConsolePort))
    		consoleEndpoints = append(consoleEndpoints, endpoint)
    	}
    
    	return consoleEndpoints
    }
    
    func getAPIEndpoints() (apiEndpoints []string) {
    	if globalMinioEndpoint != "" {
    		return []string{globalMinioEndpoint}
    	}
    	var ipList []string
    	if globalMinioHost == "" {
    		ipList = sortIPs(mustGetLocalIP4().ToSlice())
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/net_test.go

    		{"localhost", "80", "http://localhost:80"},
    	}
    
    	for i, testCase := range testCases {
    		globalMinioHost, globalMinioPort = testCase.host, testCase.port
    		apiEndpoints := getAPIEndpoints()
    		apiEndpointSet := set.CreateStringSet(apiEndpoints...)
    		if !apiEndpointSet.Contains(testCase.expectedResult) {
    			t.Fatalf("test %d: expected: Found, got: Not Found", i+1)
    		}
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. cmd/server-main.go

    				go initFederatorBackend(buckets, newObject)
    			})
    		}
    
    		// Prints the formatted startup message, if err is not nil then it prints additional information as well.
    		printStartupMessage(getAPIEndpoints(), err)
    
    		// Print a warning at the end of the startup banner so it is more noticeable
    		if newObject.BackendInfo().StandardSCParity == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 33K bytes
    - Viewed (1)
  5. cmd/admin-handlers.go

    	}
    	return subnetAdminPublicKey
    }
    
    func createHostAnonymizerForFSMode() map[string]string {
    	hostAnonymizer := map[string]string{
    		globalLocalNodeName: "server1",
    	}
    
    	apiEndpoints := getAPIEndpoints()
    	for _, ep := range apiEndpoints {
    		if len(ep) == 0 {
    			continue
    		}
    		if url, err := xnet.ParseHTTPURL(ep); err == nil {
    			// In FS mode the drive names don't include the host.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top