Documentation ¶
Index ¶
- func GenNameByUniqueId(uniqueId string) string
- func GetRef(pod *corev1.Pod) int
- type MntInterface
- type PodMount
- func (p *PodMount) AddRefOfMount(target string, podName string) error
- func (p *PodMount) CleanCache(id string, volumeId string, cacheDirs []string) error
- func (p *PodMount) GetMountRef(uniqueId, target string) (int, error)
- func (p *PodMount) JCreateVolume(jfsSetting *jfsConfig.JfsSetting) error
- func (p *PodMount) JDeleteVolume(jfsSetting *jfsConfig.JfsSetting) error
- func (p *PodMount) JMount(jfsSetting *jfsConfig.JfsSetting) error
- func (p *PodMount) JUmount(uniqueId, target string) error
- func (p *PodMount) UmountTarget(uniqueId, target string) error
- type ProcessMount
- func (p *ProcessMount) AddRefOfMount(target string, podName string) error
- func (p *ProcessMount) CleanCache(id string, volumeId string, cacheDirs []string) error
- func (p *ProcessMount) GetMountRef(uniqueId, target string) (int, error)
- func (p *ProcessMount) JCreateVolume(jfsSetting *jfsConfig.JfsSetting) error
- func (p *ProcessMount) JDeleteVolume(jfsSetting *jfsConfig.JfsSetting) error
- func (p *ProcessMount) JMount(jfsSetting *jfsConfig.JfsSetting) error
- func (p *ProcessMount) JUmount(uniqueId, target string) error
- func (p *ProcessMount) RmrDir(directory string, isCeMount bool) ([]byte, error)
- func (p *ProcessMount) UmountTarget(uniqueId, target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenNameByUniqueId ¶ added in v0.13.3
Types ¶
type MntInterface ¶ added in v0.12.0
type MntInterface interface { k8sMount.Interface JMount(jfsSetting *jfsConfig.JfsSetting) error JCreateVolume(jfsSetting *jfsConfig.JfsSetting) error JDeleteVolume(jfsSetting *jfsConfig.JfsSetting) error GetMountRef(uniqueId, target string) (int, error) UmountTarget(uniqueId, target string) error JUmount(uniqueId, target string) error AddRefOfMount(target string, podName string) error CleanCache(id string, volumeId string, cacheDirs []string) error }
func NewPodMount ¶
func NewPodMount(client *k8sclient.K8sClient, mounter k8sMount.SafeFormatAndMount) MntInterface
func NewProcessMount ¶
func NewProcessMount(mounter k8sMount.SafeFormatAndMount) MntInterface
type PodMount ¶
type PodMount struct { k8sMount.SafeFormatAndMount K8sClient *k8sclient.K8sClient }
func (*PodMount) AddRefOfMount ¶
func (*PodMount) CleanCache ¶ added in v0.14.1
func (*PodMount) GetMountRef ¶ added in v0.14.1
func (*PodMount) JCreateVolume ¶ added in v0.13.0
func (p *PodMount) JCreateVolume(jfsSetting *jfsConfig.JfsSetting) error
func (*PodMount) JDeleteVolume ¶ added in v0.13.0
func (p *PodMount) JDeleteVolume(jfsSetting *jfsConfig.JfsSetting) error
func (*PodMount) UmountTarget ¶ added in v0.14.1
type ProcessMount ¶
type ProcessMount struct {
k8sMount.SafeFormatAndMount
}
func (*ProcessMount) AddRefOfMount ¶
func (p *ProcessMount) AddRefOfMount(target string, podName string) error
func (*ProcessMount) CleanCache ¶ added in v0.14.1
func (p *ProcessMount) CleanCache(id string, volumeId string, cacheDirs []string) error
func (*ProcessMount) GetMountRef ¶ added in v0.14.1
func (p *ProcessMount) GetMountRef(uniqueId, target string) (int, error)
func (*ProcessMount) JCreateVolume ¶ added in v0.13.0
func (p *ProcessMount) JCreateVolume(jfsSetting *jfsConfig.JfsSetting) error
func (*ProcessMount) JDeleteVolume ¶ added in v0.13.0
func (p *ProcessMount) JDeleteVolume(jfsSetting *jfsConfig.JfsSetting) error
func (*ProcessMount) JMount ¶
func (p *ProcessMount) JMount(jfsSetting *jfsConfig.JfsSetting) error
func (*ProcessMount) JUmount ¶
func (p *ProcessMount) JUmount(uniqueId, target string) error
JUmount umount targetPath
func (*ProcessMount) RmrDir ¶ added in v0.13.2
func (p *ProcessMount) RmrDir(directory string, isCeMount bool) ([]byte, error)
func (*ProcessMount) UmountTarget ¶ added in v0.14.1
func (p *ProcessMount) UmountTarget(uniqueId, target string) error
Click to show internal directories.
Click to hide internal directories.