kubernetes: k8s.io/kubernetes/pkg/controller/volume/attachdetach/testing Index | Files

package testing

import "k8s.io/kubernetes/pkg/controller/volume/attachdetach/testing"

Index

Package Files

testvolumespec.go

Constants

const TestPluginName = "kubernetes.io/testPlugin"

func CreateTestClient Uses

func CreateTestClient() *fake.Clientset

func CreateTestPlugin Uses

func CreateTestPlugin() []volume.VolumePlugin

func GetTestVolumeSpec Uses

func GetTestVolumeSpec(volumeName string, diskName v1.UniqueVolumeName) *volume.Spec

GetTestVolumeSpec returns a test volume spec

func NewPod Uses

func NewPod(uid, name string) *v1.Pod

NewPod returns a test pod object

func NewPodWithVolume Uses

func NewPodWithVolume(podName, volumeName, nodeName string) *v1.Pod

NewPod returns a test pod object

type TestPlugin Uses

type TestPlugin struct {
    ErrorEncountered bool
    // contains filtered or unexported fields
}

func (*TestPlugin) CanAttach Uses

func (plugin *TestPlugin) CanAttach(spec *volume.Spec) (bool, error)

func (*TestPlugin) CanDeviceMount Uses

func (plugin *TestPlugin) CanDeviceMount(spec *volume.Spec) (bool, error)

func (*TestPlugin) CanSupport Uses

func (plugin *TestPlugin) CanSupport(spec *volume.Spec) bool

func (*TestPlugin) ConstructVolumeSpec Uses

func (plugin *TestPlugin) ConstructVolumeSpec(volumeName, mountPath string) (*volume.Spec, error)

func (*TestPlugin) GetAttachedVolumes Uses

func (plugin *TestPlugin) GetAttachedVolumes() map[string][]string

func (*TestPlugin) GetDetachedVolumes Uses

func (plugin *TestPlugin) GetDetachedVolumes() map[string][]string

func (*TestPlugin) GetDeviceMountRefs Uses

func (plugin *TestPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error)

func (*TestPlugin) GetErrorEncountered Uses

func (plugin *TestPlugin) GetErrorEncountered() bool

func (*TestPlugin) GetPluginName Uses

func (plugin *TestPlugin) GetPluginName() string

func (*TestPlugin) GetVolumeName Uses

func (plugin *TestPlugin) GetVolumeName(spec *volume.Spec) (string, error)

func (*TestPlugin) Init Uses

func (plugin *TestPlugin) Init(host volume.VolumeHost) error

func (*TestPlugin) IsMigratedToCSI Uses

func (plugin *TestPlugin) IsMigratedToCSI() bool

func (*TestPlugin) NewAttacher Uses

func (plugin *TestPlugin) NewAttacher() (volume.Attacher, error)

func (*TestPlugin) NewDetacher Uses

func (plugin *TestPlugin) NewDetacher() (volume.Detacher, error)

func (*TestPlugin) NewDeviceMounter Uses

func (plugin *TestPlugin) NewDeviceMounter() (volume.DeviceMounter, error)

func (*TestPlugin) NewDeviceUnmounter Uses

func (plugin *TestPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error)

func (*TestPlugin) NewMounter Uses

func (plugin *TestPlugin) NewMounter(spec *volume.Spec, podRef *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error)

func (*TestPlugin) NewUnmounter Uses

func (plugin *TestPlugin) NewUnmounter(name string, podUID types.UID) (volume.Unmounter, error)

func (*TestPlugin) RequiresRemount Uses

func (plugin *TestPlugin) RequiresRemount() bool

func (*TestPlugin) SupportsBulkVolumeVerification Uses

func (plugin *TestPlugin) SupportsBulkVolumeVerification() bool

func (*TestPlugin) SupportsMountOption Uses

func (plugin *TestPlugin) SupportsMountOption() bool

Package testing imports 13 packages (graph). Updated 2019-05-20. Refresh now. Tools for package owners.