Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for fileInfo (0.17 sec)

  1. cni/pkg/nodeagent/podcgroupns_other.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	return 0, fmt.Errorf("unable to get inode os not supported")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 781 bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/podcgroupns_linux.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    	"syscall"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	if stat, ok := fi.Sys().(*syscall.Stat_t); ok {
    		return stat.Ino, nil
    	}
    	return 0, fmt.Errorf("unable to get inode")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 814 bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/fakes_test.go

    }
    
    func (f *fakeFileFakeFds) Fd() uintptr {
    	return f.fd
    }
    
    func (f *fakeFileFakeFds) Stat() (fs.FileInfo, error) {
    	fi, err := f.File.Stat()
    	if err != nil {
    		return nil, err
    	}
    	return &fakeFileFakeFI{FileInfo: fi}, nil
    }
    
    type fakeFileFakeFI struct {
    	fs.FileInfo
    }
    
    func (f *fakeFileFakeFI) Sys() any {
    	return &syscall.Stat_t{Ino: 1}
    }
    
    // Open opens the named file.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. istioctl/pkg/validate/validate.go

    		}
    		warningsByFilename[path] = warning
    	}
    	processDirectory := func(directory string, processFile func(string)) error {
    		err := filepath.Walk(directory, func(path string, info os.FileInfo, err error) error {
    			if err != nil {
    				return err
    			}
    
    			if info.IsDir() {
    				return nil
    			}
    
    			if isFileFormatValid(path) {
    				processFile(path)
    			}
    
    			return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    }
    
    func gatherFilesInDirectory(cmd *cobra.Command, dir string) ([]local.ReaderSource, error) {
    	var readers []local.ReaderSource
    
    	err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
    		if err != nil {
    			return err
    		}
    		// If we encounter a directory, recurse only if the --recursive option
    		// was provided and the directory is not the same as dir.
    		if info.IsDir() {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-generate_test.go

    			return fmt.Errorf("unknown type: %v in %v", header.Typeflag, header.Name)
    		}
    	}
    	return nil
    }
    
    func copyDir(src string, dest string) error {
    	return filepath.Walk(src, func(path string, info fs.FileInfo, err error) error {
    		if err != nil {
    			return err
    		}
    
    		outpath := filepath.Join(dest, strings.TrimPrefix(path, src))
    
    		if info.IsDir() {
    			os.MkdirAll(outpath, info.Mode())
    			return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top