Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 946 for isSocket (0.97 sec)

  1. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go

    		return nil
    	}
    
    	if !fi.IsDir() {
    		isSocket, err := util.IsUnixDomainSocket(util.NormalizePath(event.Name))
    		if err != nil {
    			return fmt.Errorf("failed to determine if file: %s is a unix domain socket: %v", event.Name, err)
    		}
    		if !isSocket {
    			klog.V(5).InfoS("Ignoring non socket file", "path", fi.Name())
    			return nil
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. pkg/volume/hostpath/host_path_test.go

    			}
    		}
    
    		if tc.isSocket {
    			if !oftc.IsSocket() {
    				t.Errorf("[%d: %q] expected socket file, got unexpected: %s", i, tc.name, path)
    			}
    			if oftc.IsDir() {
    				t.Errorf("[%d: %q] expected socket file, got unexpected folder: %s", i, tc.name, path)
    			}
    			if oftc.IsFile() {
    				t.Errorf("[%d: %q] expected socket file, got unexpected file: %s", i, tc.name, path)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  3. pkg/volume/util/hostutil/hostutil_windows.go

    	// os.Stat will return a 1920 error (windows.ERROR_CANT_ACCESS_FILE) if we use it on a Unix Socket
    	// on Windows. In this case, we need to use a different method to check if it's a Unix Socket.
    	if err == errUnknownFileType || isSystemCannotAccessErr(err) {
    		if isSocket, errSocket := filesystem.IsUnixDomainSocket(pathname); errSocket == nil && isSocket {
    			return FileTypeSocket, nil
    		}
    	}
    
    	return filetype, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/runtime/runtime.go

    func detectCRISocketImpl(isSocket func(string) bool, knownCRISockets []string) (string, error) {
    	foundCRISockets := []string{}
    
    	for _, socket := range knownCRISockets {
    		if isSocket(socket) {
    			foundCRISockets = append(foundCRISockets, socket)
    		}
    	}
    
    	switch len(foundCRISockets) {
    	case 0:
    		// Fall back to the default socket if no CRI is detected, we can error out later on if we need it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. pkg/volume/hostpath/host_path.go

    	case v1.HostPathFile:
    		if !ftc.IsFile() {
    			return fmt.Errorf("hostPath type check failed: %s is not a file", ftc.GetPath())
    		}
    	case v1.HostPathSocket:
    		if !ftc.IsSocket() {
    			return fmt.Errorf("hostPath type check failed: %s is not a socket file", ftc.GetPath())
    		}
    	case v1.HostPathCharDev:
    		if !ftc.IsChar() {
    			return fmt.Errorf("hostPath type check failed: %s is not a character device", ftc.GetPath())
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. releasenotes/notes/exit-if-sds-socket-not-found.yaml

    kind: bug-fix
    area: security
    issue:
    - 45534
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 11 22:42:46 UTC 2023
    - 313 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_386.go

    	_, e := socketcall(_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func socket(domain int, typ int, proto int) (fd int, err error) {
    	fd, e := rawsocketcall(_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_s390x.go

    		err = errnoErr(e1)
    	}
    	return
    }
    
    // On s390x Linux, all the socket calls go through an extra indirection.
    // The arguments to the underlying system call are the number below
    // and a pointer to an array of uintptr.  We hide the pointer in the
    // socketcall assembly to avoid allocation on every system call.
    
    const (
    	// see linux/net.h
    	_SOCKET      = 1
    	_BIND        = 2
    	_CONNECT     = 3
    	_LISTEN      = 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_386.go

    	_, e := socketcall(_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func socket(domain int, typ int, proto int) (fd int, err error) {
    	fd, e := rawsocketcall(_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt

      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: String,
        port: Int,
      ): Socket {
        val socket = delegate.createSocket(host, port)
        return configureSocket(socket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: String,
        port: Int,
        localAddress: InetAddress,
        localPort: Int,
      ): Socket {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top