package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

CreateTestPVC returns a provisionable PVC for tests.
FindEmptyDirectoryUsageOnTmpfs finds the expected usage of an empty directory existing on a tmpfs filesystem on this system.
GetTestVolumePluginMgr creates, initializes, and returns a test volume plugin manager and fake volume plugin using a fake volume host.
NewDeviceHandler Create a new IoHandler implementation.
ScriptCommands configures fe, the FakeExec, to have a pre-configured list of commands to expect.
VerifyAttachCallCount ensures that at least one of the Attachers for this plugin has the expectedAttachCallCount number of calls.
VerifyDetachCallCount ensures that at least one of the Attachers for this plugin has the expectedDetachCallCount number of calls.
VerifyGetGlobalMapPathCallCount ensures that at least one of the Mappers for this plugin has the expectedGlobalMapPathCallCount number of calls.
VerifyGetMapPodDeviceCallCount ensures that at least one of the Mappers for this plugin has the expectedMapPodDeviceCallCount number of calls.
VerifyGetPodDeviceMapPathCallCount ensures that at least one of the Mappers for this plugin has the expectedPodDeviceMapPathCallCount number of calls.
VerifyMountDeviceCallCount ensures that at least one of the Mounters for this plugin has the expectedMountDeviceCallCount number of calls.
VerifySetUpCallCount ensures that at least one of the Mounters for this plugin has the expectedSetUpCallCount number of calls.
VerifyTearDownCallCount ensures that at least one of the Unounters for this plugin has the expectedTearDownCallCount number of calls.
VerifyTearDownDeviceCallCount ensures that at least one of the Unmappers for this plugin has the expectedTearDownDeviceCallCount number of calls.
VerifyUnmapPodDeviceCallCount ensures that at least one of the Unmappers for this plugin has the expected number of UnmapPodDevice calls.
VerifyWaitForAttachCallCount ensures that at least one of the Mounters for this plugin has the expectedWaitForAttachCallCount number of calls.
VerifyZeroAttachCalls ensures that all of the Attachers for this plugin have a zero AttachCallCount.
VerifyZeroDetachCallCount ensures that all Detachers for this plugin have a zero DetachCallCount.
VerifyZeroMountDeviceCallCount ensures that all Attachers for this plugin have a zero MountDeviceCallCount.
VerifyZeroSetUpCallCount ensures that all Mounters for this plugin have a zero SetUpCallCount.
VerifyZeroTearDownCallCount ensures that all Mounters for this plugin have a zero TearDownCallCount.
VerifyZeroTearDownDeviceCallCount ensures that all Mappers for this plugin have a zero TearDownDeviceCallCount.
VerifyZeroUnmapPodDeviceCallCount ensures that all Mappers for this plugin have a zero UnmapPodDevice calls.
VerifyZeroWaitForAttachCallCount ensures that all Attachers for this plugin have a zero WaitForAttachCallCount.

# Constants

A hook specified in storage class to indicate it's provisioning is expected to fail.
The detach operation will keep failing on the node.
FailMountDeviceVolumeName will cause MountDevice operation on volume to fail.
FailOnSetupVolumeName will cause setup call to fail.
FailWithInUseVolumeName will cause NodeExpandVolume to result in FailedPrecondition error.
The node is marked as multi-attach which means it is allowed to attach the volume to multiple nodes.
SuccessAndFailOnMountDeviceName will cause first mount operation to succeed but subsequent attempts to fail.
SuccessAndFailOnSetupVolumeName will cause first mount operation to succeed but subsequent attempts to fail.
SuccessAndTimeoutDeviceName will cause first mount operation to succeed but subsequent attempts to timeout.
SuccessAndTimeoutSetupVolumeName will cause first mount operation to succeed but subsequent attempts to timeout.
TimeoutAndFailOnMountDeviceVolumeName will cause first MountDevice call to timeout but second call will fail.
TimeoutAndFailOnSetupVolumeName will first timeout and then fail the setup.
The node is marked as timeout.
TimeoutOnMountDeviceVolumeName will cause MountDevice call to timeout but Setup will finish.
TimeoutOnSetupVolumeName will cause Setup call to timeout but volume will finish mounting.
The node is marked as uncertain.

# Structs

CommandScript is used to pre-configure a command that will be executed and optionally set it's output (stdout and stderr combined) and return code.
FakeAttachableVolumePlugin implements an attachable plugin based on FakeDeviceMountableVolumePlugin.
FakeBasicVolumePlugin implements a basic volume plugin.
FakeDeviceMountableVolumePlugin implements an device mountable plugin based on FakeBasicVolumePlugin.
FakeVolumePlugin is useful for testing.

# Interfaces

# Type aliases