Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for fileAddr (0.1 sec)

  1. src/net/file.go

    package net
    
    import "os"
    
    // BUG(mikio): On JS and Windows, the FileConn, FileListener and
    // FilePacketConn functions are not implemented.
    
    type fileAddr string
    
    func (fileAddr) Network() string  { return "file+net" }
    func (f fileAddr) String() string { return string(f) }
    
    // FileConn returns a copy of the network connection corresponding to
    // the open file f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 09 06:14:44 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  2. 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)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultArtifactCacheLockingAccessCoordinatorTest.groovy

            file3.assertDoesNotExist()
        }
    
        def "cleans up files"() {
            given:
            def file1 = filesDir.createDir("group1/artifact1/1.0/abc").createFile("my.pom")
            def file2 = filesDir.createDir("group1/artifact1/1.0/xyz").createFile("my.jar")
            def file3 = filesDir.createDir("group1/artifact1/2.0/uvw").createFile("some.pom")
            file2.parentFile.lastModified = 0
            file3.parentFile.lastModified = 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. 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)
  5. src/internal/coverage/decodemeta/decodefile.go

    	if err := r.readFileHeader(); err != nil {
    		return nil, err
    	}
    	return r, nil
    }
    
    func (r *CoverageMetaFileReader) readFileHeader() error {
    	var err error
    
    	r.fileRdr = bufio.NewReader(r.f)
    
    	// Read file header.
    	if err := binary.Read(r.fileRdr, binary.LittleEndian, &r.hdr); err != nil {
    		return err
    	}
    
    	// Verify magic string
    	m := r.hdr.Magic
    	g := coverage.CovMetaMagic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 14 22:30:23 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/fingerprinting_test.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow::saved_model::fingerprinting {
    
    namespace {
    
    absl::StatusOr<SavedModel> ReadSavedModel(absl::string_view file_dir) {
      std::string file_path = io::JoinPath(file_dir, "saved_model.pb");
      std::string serialized_saved_model;
      auto status =
          ReadFileToString(Env::Default(), file_path, &serialized_saved_model);
      if (!status.ok()) {
        return status;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. 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)
  8. pilot/pkg/bootstrap/options.go

    // be monitored for CRD yaml files and will update the controller as those files change (This is used for testing
    // purposes). Otherwise, a CRD client is created based on the configuration.
    type RegistryOptions struct {
    	// If FileDir is set, the below kubernetes options are ignored
    	FileDir string
    
    	Registries []string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. pilot/pkg/config/monitor/README.md

    ```golang
    // Configure the config store
    store := memory.Make(configDescriptor)
    controller = memory.NewController(store)
    // Create an object that will take snapshots of config
    fileSnapshot := configmonitor.NewFileSnapshot(args.Config.FileDir, configDescriptor)
    // Provide snapshot func to monitor
    fileMonitor := configmonitor.NewMonitor(controller, 100*time.Millisecond, fileSnapshot.ReadFile)
    
    // Run the controller and monitor
    stop := make(chan struct{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 14 20:15:07 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top