mount

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNameByVolumeId added in v0.13.0

func GenerateNameByVolumeId(volumeId string) string

func HasRef added in v0.13.0

func HasRef(pod *corev1.Pod) bool

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
	JUmount(volumeId, target string) error
	AddRefOfMount(target string, podName 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 (p *PodMount) AddRefOfMount(target string, podName string) error

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) JMount

func (p *PodMount) JMount(jfsSetting *jfsConfig.JfsSetting) error

func (*PodMount) JUmount

func (p *PodMount) JUmount(volumeId, target string) error

type ProcessMount

type ProcessMount struct {
	k8sMount.SafeFormatAndMount
}

func (*ProcessMount) AddRefOfMount

func (p *ProcessMount) AddRefOfMount(target string, podName string) 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(volumeId, target string) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL