Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for serverAddrs (0.22 sec)

  1. internal/http/listener_test.go

    					continue nextTest
    				}
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    		}
    
    		for _, serverAddr := range listener.Addrs() {
    			conn, err := net.Dial("tcp", serverAddr.String())
    			if err != nil {
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    			conn.Close()
    		}
    
    		listener.Close()
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 12 16:09:28 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  2. internal/http/listener.go

    func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions) (listener *httpListener, listenErrs []error) {
    	listeners := make([]net.Listener, 0, len(serverAddrs))
    	listenErrs = make([]error, len(serverAddrs))
    
    	// Unix listener with special TCP options.
    	listenCfg := net.ListenConfig{
    		Control: setTCPParametersFn(opts),
    	}
    
    	for i, serverAddr := range serverAddrs {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. internal/config/identity/ldap/help.go

    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         ServerAddr,
    			Description: `AD/LDAP server address e.g. "myldap.com" or "myldapserver.com:636"` + defaultHelpPostfix(ServerAddr),
    			Type:        "address",
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         SRVRecordName,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  4. internal/config/identity/ldap/config.go

    		val, _, _ := s.ResolveConfigParam(config.IdentityLDAPSubSys, config.Default, cfgParam, false)
    		return val
    	}
    
    	ldapServer := getCfgVal(ServerAddr)
    	if ldapServer == "" {
    		return l, nil
    	}
    	l.LDAP = ldap.Config{
    		RootCAs:       rootCAs,
    		ServerAddr:    ldapServer,
    		SRVRecordName: getCfgVal(SRVRecordName),
    	}
    
    	// Parse explicitly set enable=on/off flag.
    	isEnableFlagExplicitlySet := false
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  5. cmd/net.go

    	if addr1Local && addr2Local {
    		if port1 == port2 {
    			return true, nil
    		}
    	}
    	return false, nil
    }
    
    // CheckLocalServerAddr - checks if serverAddr is valid and local host.
    func CheckLocalServerAddr(serverAddr string) error {
    	host, err := xnet.ParseHost(serverAddr)
    	if err != nil {
    		return config.ErrInvalidAddressFlag(err)
    	}
    
    	// 0.0.0.0 is a wildcard address and refers to local network
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. cmd/net_test.go

    		if !apiEndpointSet.Contains(testCase.expectedResult) {
    			t.Fatalf("test %d: expected: Found, got: Not Found", i+1)
    		}
    	}
    }
    
    func TestCheckLocalServerAddr(t *testing.T) {
    	testCases := []struct {
    		serverAddr  string
    		expectedErr error
    	}{
    		{":54321", nil},
    		{"localhost:54321", nil},
    		{"0.0.0.0:9000", nil},
    		{":0", nil},
    		{"localhost", nil},
    		{"", fmt.Errorf("invalid argument")},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. cmd/endpoint-ellipses.go

    // both ellipses and without ellipses transparently.
    func createServerEndpoints(serverAddr string, poolArgs []poolDisksLayout, legacy bool) (
    	endpointServerPools EndpointServerPools, setupType SetupType, err error,
    ) {
    	if len(poolArgs) == 0 {
    		return nil, -1, errInvalidArgument
    	}
    
    	poolEndpoints, setupType, err := CreatePoolEndpoints(serverAddr, poolArgs...)
    	if err != nil {
    		return nil, -1, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  8. cmd/endpoint.go

    func CreatePoolEndpoints(serverAddr string, poolsLayout ...poolDisksLayout) ([]Endpoints, SetupType, error) {
    	var setupType SetupType
    
    	if isEmptyLayout(poolsLayout...) {
    		return nil, setupType, config.ErrInvalidErasureEndpoints(nil).Msg("invalid number of endpoints")
    	}
    
    	// Check whether serverAddr is valid for this host.
    	if err := CheckLocalServerAddr(serverAddr); err != nil {
    		return nil, setupType, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  9. cmd/endpoint-ellipses_test.go

    import (
    	"fmt"
    	"reflect"
    	"testing"
    
    	"github.com/minio/pkg/v2/ellipses"
    )
    
    // Tests create endpoints with ellipses and without.
    func TestCreateServerEndpoints(t *testing.T) {
    	testCases := []struct {
    		serverAddr string
    		args       []string
    		success    bool
    	}{
    		// Invalid input.
    		{"", []string{}, false},
    		// Range cannot be negative.
    		{":9000", []string{"/export1{-1...1}"}, false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 15.2K bytes
    - Viewed (0)
  10. cmd/sts-handlers_test.go

    // container and canned data from https://github.com/minio/minio-ldap-testing
    func (s *TestSuiteIAM) SetUpLDAP(c *check, serverAddr string) {
    	ctx, cancel := context.WithTimeout(context.Background(), testDefaultTimeout)
    	defer cancel()
    
    	configCmds := []string{
    		"identity_ldap",
    		fmt.Sprintf("server_addr=%s", serverAddr),
    		"server_insecure=on",
    		"lookup_bind_dn=cn=admin,dc=min,dc=io",
    		"lookup_bind_password=admin",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
Back to top