Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for fileAddr (0.12 sec)

  1. src/net/error_test.go

    			}
    		case *pipeAddr:
    			if addr == nil {
    				return fmt.Errorf("OpError.Source or Addr is non-nil interface: %#v, %v", addr, e)
    			}
    		case fileAddr:
    			if addr == "" {
    				return fmt.Errorf("OpError.Source or Addr is empty: %#v, %v", addr, e)
    			}
    		default:
    			return fmt.Errorf("OpError.Source or Addr is unknown type: %T, %v", addr, e)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  2. pkg/kubelet/certificate/bootstrap/bootstrap_test.go

    	fileDir := t.TempDir()
    	//Copy the required certificate file to the temporary directory.
    	copyFile("./testdata/mycertinvalid.crt", fileDir+"/mycertinvalid.crt")
    	copyFile("./testdata/mycertvalid.crt", fileDir+"/mycertvalid.crt")
    	copyFile("./testdata/mycertinvalid.key", fileDir+"/mycertinvalid.key")
    	copyFile("./testdata/mycertvalid.key", fileDir+"/mycertvalid.key")
    	testDataValid := []byte(`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/configcontroller.go

    	}
    	return crdclient.New(s.kubeClient, opts)
    }
    
    func (s *Server) makeFileMonitor(fileDir string, domainSuffix string, configController model.ConfigStore) error {
    	fileSnapshot := configmonitor.NewFileSnapshot(fileDir, collections.Pilot, domainSuffix)
    	fileMonitor := configmonitor.NewMonitor("file-monitor", configController, fileSnapshot.ReadConfigFiles, fileDir)
    
    	// Defer starting the file monitor until after the service is created.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server_test.go

    					HTTPAddr:       ":0",
    					MonitoringAddr: ":0",
    					GRPCAddr:       ":0",
    					SecureGRPCAddr: ":0",
    					TLSOptions:     *c.tlsOptions,
    				}
    				p.RegistryOptions = RegistryOptions{
    					FileDir: configDir,
    				}
    
    				p.ShutdownDuration = 1 * time.Millisecond
    			})
    			g := NewWithT(t)
    			s, err := NewServer(args, func(s *Server) {
    				s.kubeClient = kube.NewFakeClient()
    			})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/preflight/checks_test.go

    				rt.name,
    				rt.expectedError,
    				(len(output) > 0),
    			)
    		}
    	}
    }
    
    func TestDirAvailableCheck(t *testing.T) {
    	fileDir, err := os.MkdirTemp("", "dir-avail-check")
    	if err != nil {
    		t.Fatalf("failed creating directory: %v", err)
    	}
    	defer os.RemoveAll(fileDir)
    	var tests = []struct {
    		name          string
    		check         DirAvailableCheck
    		expectedError bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/resolver.go

    		// determine file directory, necessary to resolve imports
    		// FileName may be "" (typically for tests) in which case
    		// we get "." as the directory which is what we would want.
    		fileDir := dir(file.PkgName.Pos().RelFilename()) // TODO(gri) should this be filename?
    
    		first := -1                // index of first ConstDecl in the current group, or -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. src/go/types/resolver.go

    		// determine file directory, necessary to resolve imports
    		// FileName may be "" (typically for tests) in which case
    		// we get "." as the directory which is what we would want.
    		fileDir := dir(check.fset.Position(file.Name.Pos()).Filename)
    
    		check.walkDecls(file.Decls, func(d decl) {
    			switch d := d.(type) {
    			case importDecl:
    				// import package
    				if d.spec.Path.Value == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/server.go

    func (s *Server) initKubeClient(args *PilotArgs) error {
    	if s.kubeClient != nil {
    		// Already initialized by startup arguments
    		return nil
    	}
    	hasK8SConfigStore := false
    	if args.RegistryOptions.FileDir == "" {
    		// If file dir is set - config controller will just use file.
    		if _, err := os.Stat(args.MeshConfigFile); !os.IsNotExist(err) {
    			meshConfig, err := mesh.ReadMeshConfig(args.MeshConfigFile)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top