Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for fs (0.14 sec)

  1. cni/pkg/nodeagent/informers_test.go

    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		"",
    	).Return(nil)
    
    	server := &meshDataplane{
    		kubeClient: client.Kube(),
    		netServer:  fs,
    	}
    
    	fs.Start(ctx)
    	handlers := setupHandlers(ctx, client, server, "istio-system")
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. manifests/manifest.go

    package manifests
    
    import (
    	"embed"
    	"io/fs"
    	"os"
    )
    
    // FS embeds the manifests
    //
    //go:embed all:charts/* profiles/*
    var FS embed.FS
    
    // BuiltinOrDir returns a FS for the provided directory. If no directory is passed, the compiled in
    // FS will be used
    func BuiltinOrDir(dir string) fs.FS {
    	if dir == "" {
    		return FS
    	}
    	return os.DirFS(dir)
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Mar 15 02:30:16 GMT 2023
    - 935 bytes
    - Viewed (0)
  3. common/Makefile.common.mk

    # help works by looking over all Makefile includes matching `target: ## comment` regex and outputting them
    help: ## Show this help
    	@egrep -h '^[a-zA-Z_\.-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort  | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
    
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Mar 02 20:07:36 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 781 bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/fakes_test.go

    	return nil
    }
    
    func fakeFs() fs.FS {
    	subFs, err := fs.Sub(fakeProc, "testdata")
    	if err != nil {
    		panic(err)
    	}
    	subFs, err = fs.Sub(subFs, "cgroupns")
    	if err != nil {
    		panic(err)
    	}
    	return &fakeFsWithFakeFds{ReadDirFS: subFs.(fs.ReadDirFS)}
    }
    
    type fakeFsWithFakeFds struct {
    	fs.ReadDirFS
    }
    type fakeFileFakeFds struct {
    	fs.File
    	fd uintptr
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 814 bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/podcgroupns.go

    type PodNetnsEntry struct {
    	uid     types.UID
    	netns   fs.File
    	netnsfd uintptr
    	inode   uint64
    }
    
    func (p *PodNetnsProcFinder) processEntry(proc fs.FS, netnsObserved sets.Set[uint64], filter sets.Set[types.UID], entry fs.DirEntry) (*PodNetnsEntry, error) {
    	if !isProcess(entry) {
    		return nil, nil
    	}
    
    	netnsName := path.Join(entry.Name(), "ns", "net")
    	fi, err := fs.Stat(proc, netnsName)
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/cni-watcher_test.go

    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		valid.Netns,
    	).Return(nil)
    
    	dpServer := &meshDataplane{
    		kubeClient: client.Kube(),
    		netServer:  fs,
    	}
    
    	handlers := setupHandlers(ctx, client, dpServer, "istio-system")
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 08:18:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  9. cni/pkg/repair/netns.go

    	wantID, err := findNetworkIDByIP(pod.Status.PodIP)
    	if err != nil {
    		return "", fmt.Errorf("network id: %v", err)
    	}
    	fs, err := procfs.NewFS("/host/proc")
    	if err != nil {
    		return "", fmt.Errorf("read procfs: %v", err)
    	}
    	procs, err := fs.AllProcs()
    	if err != nil {
    		return "", fmt.Errorf("read procs: %v", err)
    	}
    	oldest := uint64(math.MaxUint64)
    	best := ""
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/core/v1/generated.proto

      // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
      // +optional
      optional CinderPersistentVolumeSource cinder = 8;
    
      // cephFS represents a Ceph FS mount on the host that shares a pod's lifetime
      // +optional
      optional CephFSPersistentVolumeSource cephfs = 9;
    
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
Back to top