Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of about 10,000 for Bind (0.07 sec)

  1. docs_src/sql_databases/sql_app/tests/test_sql_app.py

    engine = create_engine(
        SQLALCHEMY_DATABASE_URL,
        connect_args={"check_same_thread": False},
        poolclass=StaticPool,
    )
    TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
    
    
    Base.metadata.create_all(bind=engine)
    
    
    def override_get_db():
        try:
            db = TestingSessionLocal()
            yield db
        finally:
            db.close()
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jun 22 11:20:12 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/flag/flag_test.go

    		A, B, C string
    		Env     string
    		Bool    bool
    	}
    	opts := Options{
    		B: "b-def",
    	}
    	test.SetEnvForTest(t, "TEST_ENV", "from-env")
    	fs := pflag.NewFlagSet("test", pflag.ContinueOnError)
    	Bind(fs, "a", "", "desc", &opts.A)
    	Bind(fs, "bool", "", "desc", &opts.Bool)
    	BindEnv(fs, "test-env", "", "desc", &opts.Env)
    	fs.Set("a", "a-set")
    	fs.Set("bool", "true")
    	assert.Equal(t, opts, Options{
    		A:    "a-set",
    		B:    "b-def",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. pkg/volume/fc/disk_manager.go

    		return err
    	}
    	// Perform a bind mount to the full path to allow duplicate mounts of the same disk.
    	options := []string{"bind"}
    	if b.readOnly {
    		options = append(options, "ro")
    	}
    	mountOptions := util.JoinMountOptions(options, b.mountOptions)
    	err = mounter.MountSensitiveWithoutSystemd(globalPDPath, volPath, "", mountOptions, nil)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. pkg/scheduler/testing/framework/framework_helpers.go

    	return RegisterPluginAsExtensions(pluginName, pluginNewFunc, "PreScore")
    }
    
    // RegisterBindPlugin returns a function to register a Bind Plugin to a given registry.
    func RegisterBindPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc {
    	return RegisterPluginAsExtensions(pluginName, pluginNewFunc, "Bind")
    }
    
    // RegisterPluginAsExtensions returns a function to register a Plugin as given extensionPoints to a given registry.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. pkg/volume/flexvolume/mounter-defaults.go

    func (f *mounterDefaults) SetUpAt(dir string, mounterArgs volume.MounterArgs) error {
    	klog.Warning(logPrefix(f.plugin), "using default SetUpAt to ", dir)
    
    	src, err := f.plugin.getDeviceMountPath(f.spec)
    	if err != nil {
    		return err
    	}
    
    	if err := doMount(f.mounter, src, dir, "auto", []string{"bind"}); err != nil {
    		return err
    	}
    
    	return nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 24 15:56:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. internal/http/check_port_test.go

    	port := l.Addr().(*net.TCPAddr).Port
    
    	testCases := []struct {
    		host        string
    		port        int
    		expectedErr error
    	}{
    		{"", port, fmt.Errorf("listen tcp :%v: bind: address already in use", port)},
    		{"127.0.0.1", port, fmt.Errorf("listen tcp 127.0.0.1:%v: bind: address already in use", port)},
    	}
    
    	for _, testCase := range testCases {
    		err := CheckPortAvailability(testCase.host, strconv.Itoa(testCase.port), TCPOptions{})
    		switch {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 03 21:12:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. pkg/volume/iscsi/disk_manager.go

    	}
    	if !notMnt {
    		return nil
    	}
    
    	if err := os.MkdirAll(volPath, 0750); err != nil {
    		klog.Errorf("failed to mkdir:%s", volPath)
    		return err
    	}
    	// Perform a bind mount to the full path to allow duplicate mounts of the same disk.
    	options := []string{"bind"}
    	if b.readOnly {
    		options = append(options, "ro")
    	}
    	if b.iscsiDisk.InitiatorName != "" {
    		// new iface name is <target portal>:<volume name>
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. cmd/kubeadm/test/cmd/init_test.go

    	}{
    		{
    			name:     "fail on non-string port",
    			args:     "--apiserver-bind-port=foobar",
    			expected: false,
    		},
    		{
    			name:     "fail on too large port number",
    			args:     "--apiserver-bind-port=100000",
    			expected: false,
    		},
    		{
    			name:     "fail on negative port number",
    			args:     "--apiserver-bind-port=-6000",
    			expected: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:03:09 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. releasenotes/notes/40268.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    issue:
      - https://github.com/istio/istio/issues/40268
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 08 19:15:19 UTC 2022
    - 272 bytes
    - Viewed (0)
  10. pilot/pkg/model/gateway_test.go

    			Servers: []*networking.Server{
    				{
    					Hosts: []string{host},
    					Port:  &networking.Port{Name: portName, Number: portNumber, Protocol: portProtocol},
    					Bind:  bind,
    					Tls:   &networking.ServerTLSSettings{Mode: mode},
    				},
    			},
    		},
    	}
    	return c
    }
    
    func BenchmarkParseGatewayRDSRouteName(b *testing.B) {
    	for range b.N {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 02:36:23 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top