- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for TearDownAt (0.12 sec)
-
pkg/volume/flexvolume/unmounter.go
runner exec.Interface } var _ volume.Unmounter = &flexVolumeUnmounter{} // Unmounter interface func (f *flexVolumeUnmounter) TearDown() error { path := f.GetPath() return f.TearDownAt(path) } func (f *flexVolumeUnmounter) TearDownAt(dir string) error { pathExists, pathErr := mount.PathExists(dir) if pathErr != nil { // only log warning here since plugins should anyways have to deal with errors
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 14 13:58:56 UTC 2021 - 1.9K bytes - Viewed (0) -
pkg/volume/flexvolume/unmounter-defaults.go
*/ package flexvolume import ( "k8s.io/klog/v2" "k8s.io/mount-utils" ) type unmounterDefaults flexVolumeUnmounter func (f *unmounterDefaults) TearDownAt(dir string) error { klog.Warning(logPrefix(f.plugin), "using default TearDownAt for ", dir) return mount.CleanupMountPoint(dir, f.mounter, false)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 17 04:51:24 UTC 2020 - 876 bytes - Viewed (0) -
pkg/volume/git_repo/git_repo.go
// TearDown simply deletes everything in the directory. func (c *gitRepoVolumeUnmounter) TearDown() error { return c.TearDownAt(c.GetPath()) } // TearDownAt simply deletes everything in the directory. func (c *gitRepoVolumeUnmounter) TearDownAt(dir string) error { return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/volume/flexvolume/unmounter_test.go
plugin.runner = fakeRunner( assertDriverCall(t, notSupportedOutput(), unmountCmd, rootDir+"/mount-dir"), ) u, _ := plugin.newUnmounterInternal("volName", types.UID("poduid"), mounter, plugin.runner) u.TearDownAt(rootDir + "/mount-dir")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 17 04:51:24 UTC 2020 - 1.1K bytes - Viewed (0) -
pkg/volume/nfs/nfs.go
} return nil } var _ volume.Unmounter = &nfsUnmounter{} type nfsUnmounter struct { *nfs } func (c *nfsUnmounter) TearDown() error { return c.TearDownAt(c.GetPath()) } func (c *nfsUnmounter) TearDownAt(dir string) error { // Use extensiveMountPointCheck to consult /proc/mounts. We can't use faster // IsLikelyNotMountPoint (lstat()), since there may be root_squash on the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/volume/secret/secret.go
type secretVolumeUnmounter struct { *secretVolume } var _ volume.Unmounter = &secretVolumeUnmounter{} func (c *secretVolumeUnmounter) TearDown() error { return c.TearDownAt(c.GetPath()) } func (c *secretVolumeUnmounter) TearDownAt(dir string) error { return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.1K bytes - Viewed (0)