Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,272 for unixOS (0.36 sec)

  1. cni/pkg/pluginlistener/listener.go

    	"os"
    	"path/filepath"
    
    	"istio.io/istio/pkg/log"
    )
    
    func NewListener(path string) (net.Listener, error) {
    	// Remove unix socket before use.
    	if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
    		// Anything other than "file not found" is an error.
    		return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err)
    	}
    
    	// Attempt to create the folder in case it doesn't exist
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/constants/constants_unix.go

    */
    
    package constants
    
    const (
    	// CRISocketContainerd is the containerd CRI endpoint
    	CRISocketContainerd = "unix:///var/run/containerd/containerd.sock"
    	// CRISocketCRIO is the cri-o CRI endpoint
    	CRISocketCRIO = "unix:///var/run/crio/crio.sock"
    	// CRISocketDocker is the cri-dockerd CRI endpoint
    	CRISocketDocker = "unix:///var/run/cri-dockerd.sock"
    
    	// DefaultCRISocket defines the default CRI socket
    	DefaultCRISocket = CRISocketContainerd
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 12 15:15:45 UTC 2022
    - 1K bytes
    - Viewed (0)
  3. src/internal/syscall/unix/kernel_version_solaris_test.go

    		if err != syscall.EINTR {
    			break
    		}
    	}
    	wantAccept4 := err != syscall.ENOSYS
    	gotAccept4 := unix.SupportAccept4()
    	if wantAccept4 != gotAccept4 {
    		t.Fatalf("SupportAccept4, got %t; want %t", gotAccept4, wantAccept4)
    	}
    
    	// Test that the version returned by KernelVersion matches expectations.
    	major, minor := unix.KernelVersion()
    	t.Logf("Kernel version: %d.%d", major, minor)
    	if runtime.GOOS == "illumos" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/copycerts/testutil_umask.go

    limitations under the License.
    */
    
    package copycerts
    
    import "golang.org/x/sys/unix"
    
    // on unix where umask may be in effect, clear umask so tests
    // are not sensitive to the developer's system umask
    func setNoUmask() {
    	unix.Umask(0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 825 bytes
    - Viewed (0)
  5. pkg/kubelet/util/boottime_util_linux.go

    limitations under the License.
    */
    
    package util
    
    import (
    	"fmt"
    	"time"
    
    	"golang.org/x/sys/unix"
    )
    
    // GetBootTime returns the time at which the machine was started, truncated to the nearest second
    func GetBootTime() (time.Time, error) {
    	currentTime := time.Now()
    	var info unix.Sysinfo_t
    	if err := unix.Sysinfo(&info); err != nil {
    		return time.Time{}, fmt.Errorf("error getting system uptime: %s", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. pkg/kubelet/util/util_unix.go

    limitations under the License.
    */
    
    package util
    
    import (
    	"net/url"
    	"path/filepath"
    )
    
    const (
    	// unixProtocol is the network protocol of unix socket.
    	unixProtocol = "unix"
    )
    
    // LocalEndpoint returns the full path to a unix socket at the given endpoint
    func LocalEndpoint(path, file string) (string, error) {
    	u := url.URL{
    		Scheme: unixProtocol,
    		Path:   path,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/kubelet/flags_test.go

    			opts: kubeletFlagsOpts{
    				nodeRegOpts: &kubeadmapi.NodeRegistrationOptions{
    					CRISocket: "unix:///var/run/containerd/containerd.sock",
    					KubeletExtraArgs: []kubeadmapi.Arg{
    						{Name: "hostname-override", Value: "override-name"},
    					},
    				},
    			},
    			expected: []kubeadmapi.Arg{
    				{Name: "container-runtime-endpoint", Value: "unix:///var/run/containerd/containerd.sock"},
    				{Name: "hostname-override", Value: "override-name"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/valid-configs/kms/multiple-providers.yaml

    apiVersion: apiserver.config.k8s.io/v1
    resources:
      - resources:
          - secrets
        providers:
          - kms:
              name: foo
              endpoint: unix:///tmp/testprovider.sock
              timeout:   15s
          - kms:
              name: bar
              endpoint: unix:///tmp/testprovider.sock
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 14 21:59:25 UTC 2019
    - 341 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/invalid-configs/kms/invalid-apiversion.yaml

    resources:
      - resources:
          - secrets
        providers:
          - kms:
              apiVersion: v3
              name: foo
              endpoint: unix:///tmp/testprovider.sock
              timeout:   15s
          - kms:
              name: bar
              endpoint: unix:///tmp/testprovider.sock
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 03 19:04:47 UTC 2022
    - 367 bytes
    - Viewed (0)
  10. src/net/unixsock_test.go

    	if !testableNetwork("unix") {
    		t.Skip("unix test")
    	}
    
    	handler := func(ls *localServer, ln Listener) {}
    	for _, laddr := range []string{"", testUnixAddr(t)} {
    		laddr := laddr
    		taddr := testUnixAddr(t)
    		ta, err := ResolveUnixAddr("unix", taddr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		ln, err := ListenUnix("unix", ta)
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top