Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wrapFile (0.06 sec)

  1. cni/pkg/nodeagent/fakes_test.go

    // ErrInvalid or ErrNotExist.
    func (ffs *fakeFsWithFakeFds) Open(name string) (fs.File, error) {
    	f, err := ffs.ReadDirFS.Open(name)
    	if err != nil {
    		return nil, err
    	}
    	return wrapFile(f), nil
    }
    
    func wrapFile(f fs.File) fs.File {
    	return &fakeFileFakeFds{File: f, fd: 0}
    }
    
    type fakeIptablesDeps struct {
    	AddRouteErr           error
    	AddInpodMarkIPRuleCnt atomic.Int32
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 23:33:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top