Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for copyBinaries (0.2 sec)

  1. cni/pkg/install/binaries.go

    	"istio.io/istio/pkg/file"
    	"istio.io/istio/pkg/util/sets"
    )
    
    // Copies/mirrors any files present in a single source dir to N number of target dirs
    // and returns a set of the filenames copied.
    func copyBinaries(srcDir string, targetDirs []string) (sets.String, error) {
    	copiedFilenames := sets.String{}
    	srcFiles, err := os.ReadDir(srcDir)
    	if err != nil {
    		return copiedFilenames, err
    	}
    
    	for _, f := range srcFiles {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Dec 11 19:10:54 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. cni/pkg/install/binaries_test.go

    			}
    
    			targetDir := t.TempDir()
    			for filename, contents := range c.existingFiles {
    				file.WriteOrFail(t, filepath.Join(targetDir, filename), []byte(contents))
    			}
    
    			binariesCopied, err := copyBinaries(srcDir, []string{targetDir})
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			for filename, expectedContents := range c.expectedFiles {
    				contents := file.AsStringOrFail(t, filepath.Join(targetDir, filename))
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jul 20 18:34:43 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  3. cni/pkg/install/install.go

    	// Install binaries
    	// Currently we _always_ do this, since the binaries do not live in a shared location
    	// and we harm no one by doing so.
    	copiedFiles, err := copyBinaries(in.cfg.CNIBinSourceDir, in.cfg.CNIBinTargetDirs)
    	if err != nil {
    		cniInstalls.With(resultLabel.Value(resultCopyBinariesFailure)).Increment()
    		return copiedFiles, fmt.Errorf("copy binaries: %v", err)
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
Back to top