Documentation ¶
Index ¶
- Constants
- func CreateTestClient() *fake.Clientset
- func CreateTestPlugin() []volume.VolumePlugin
- func GetTestVolumeSpec(volumeName string, diskName v1.UniqueVolumeName) *volume.Spec
- func NewPod(uid, name string) *v1.Pod
- func NewPodWithVolume(podName, volumeName, nodeName string) *v1.Pod
- type TestPlugin
- func (plugin *TestPlugin) CanSupport(spec *volume.Spec) bool
- func (plugin *TestPlugin) ConstructVolumeSpec(volumeName, mountPath string) (*volume.Spec, error)
- func (plugin *TestPlugin) GetAttachedVolumes() map[string][]string
- func (plugin *TestPlugin) GetDetachedVolumes() map[string][]string
- func (plugin *TestPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error)
- func (plugin *TestPlugin) GetErrorEncountered() bool
- func (plugin *TestPlugin) GetPluginName() string
- func (plugin *TestPlugin) GetVolumeName(spec *volume.Spec) (string, error)
- func (plugin *TestPlugin) Init(host volume.VolumeHost) error
- func (plugin *TestPlugin) IsMigratedToCSI() bool
- func (plugin *TestPlugin) NewAttacher() (volume.Attacher, error)
- func (plugin *TestPlugin) NewDetacher() (volume.Detacher, error)
- func (plugin *TestPlugin) NewDeviceMounter() (volume.DeviceMounter, error)
- func (plugin *TestPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error)
- func (plugin *TestPlugin) NewMounter(spec *volume.Spec, podRef *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error)
- func (plugin *TestPlugin) NewUnmounter(name string, podUID types.UID) (volume.Unmounter, error)
- func (plugin *TestPlugin) RequiresRemount() bool
- func (plugin *TestPlugin) SupportsBulkVolumeVerification() bool
- func (plugin *TestPlugin) SupportsMountOption() bool
Constants ¶
View Source
const TestPluginName = "kubernetes.io/testPlugin"
Variables ¶
This section is empty.
Functions ¶
func CreateTestClient ¶
func CreateTestPlugin ¶ added in v1.7.0
func CreateTestPlugin() []volume.VolumePlugin
func GetTestVolumeSpec ¶
func GetTestVolumeSpec(volumeName string, diskName v1.UniqueVolumeName) *volume.Spec
GetTestVolumeSpec returns a test volume spec
func NewPodWithVolume ¶ added in v1.7.0
NewPod returns a test pod object
Types ¶
type TestPlugin ¶ added in v1.7.0
type TestPlugin struct { ErrorEncountered bool // contains filtered or unexported fields }
func (*TestPlugin) CanSupport ¶ added in v1.7.0
func (plugin *TestPlugin) CanSupport(spec *volume.Spec) bool
func (*TestPlugin) ConstructVolumeSpec ¶ added in v1.7.0
func (plugin *TestPlugin) ConstructVolumeSpec(volumeName, mountPath string) (*volume.Spec, error)
func (*TestPlugin) GetAttachedVolumes ¶ added in v1.7.0
func (plugin *TestPlugin) GetAttachedVolumes() map[string][]string
func (*TestPlugin) GetDetachedVolumes ¶ added in v1.7.0
func (plugin *TestPlugin) GetDetachedVolumes() map[string][]string
func (*TestPlugin) GetDeviceMountRefs ¶ added in v1.7.0
func (plugin *TestPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error)
func (*TestPlugin) GetErrorEncountered ¶ added in v1.7.0
func (plugin *TestPlugin) GetErrorEncountered() bool
func (*TestPlugin) GetPluginName ¶ added in v1.7.0
func (plugin *TestPlugin) GetPluginName() string
func (*TestPlugin) GetVolumeName ¶ added in v1.7.0
func (plugin *TestPlugin) GetVolumeName(spec *volume.Spec) (string, error)
func (*TestPlugin) Init ¶ added in v1.7.0
func (plugin *TestPlugin) Init(host volume.VolumeHost) error
func (*TestPlugin) IsMigratedToCSI ¶
func (plugin *TestPlugin) IsMigratedToCSI() bool
func (*TestPlugin) NewAttacher ¶ added in v1.7.0
func (plugin *TestPlugin) NewAttacher() (volume.Attacher, error)
func (*TestPlugin) NewDetacher ¶ added in v1.7.0
func (plugin *TestPlugin) NewDetacher() (volume.Detacher, error)
func (*TestPlugin) NewDeviceMounter ¶
func (plugin *TestPlugin) NewDeviceMounter() (volume.DeviceMounter, error)
func (*TestPlugin) NewDeviceUnmounter ¶
func (plugin *TestPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error)
func (*TestPlugin) NewMounter ¶ added in v1.7.0
func (plugin *TestPlugin) NewMounter(spec *volume.Spec, podRef *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error)
func (*TestPlugin) NewUnmounter ¶ added in v1.7.0
func (*TestPlugin) RequiresRemount ¶ added in v1.7.0
func (plugin *TestPlugin) RequiresRemount() bool
func (*TestPlugin) SupportsBulkVolumeVerification ¶ added in v1.7.0
func (plugin *TestPlugin) SupportsBulkVolumeVerification() bool
func (*TestPlugin) SupportsMountOption ¶ added in v1.7.0
func (plugin *TestPlugin) SupportsMountOption() bool
Click to show internal directories.
Click to hide internal directories.