Documentation ¶
Index ¶
- type DevicePathResolver
- func NewIDDevicePathResolver(diskWaitTimeout time.Duration, udev boshudev.UdevDevice, fs boshsys.FileSystem, ...) DevicePathResolver
- func NewIdentityDevicePathResolver() DevicePathResolver
- func NewIscsiDevicePathResolver(diskWaitTimeout time.Duration, runner boshsys.CmdRunner, ...) DevicePathResolver
- func NewMappedDevicePathResolver(diskWaitTimeout time.Duration, fs boshsys.FileSystem) DevicePathResolver
- func NewMultipathDevicePathResolver(idDevicePathResolver DevicePathResolver, ...) DevicePathResolver
- func NewScsiDevicePathResolver(scsiVolumeIDPathResolver DevicePathResolver, ...) DevicePathResolver
- func NewVirtioDevicePathResolver(idDevicePathResolver DevicePathResolver, ...) DevicePathResolver
- type SCSIIDDevicePathResolver
- type SCSILunDevicePathResolver
- type SCSIVolumeIDDevicePathResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevicePathResolver ¶
type DevicePathResolver interface {
GetRealDevicePath(diskSettings boshsettings.DiskSettings) (realPath string, timedOut bool, err error)
}
func NewIDDevicePathResolver ¶
func NewIDDevicePathResolver( diskWaitTimeout time.Duration, udev boshudev.UdevDevice, fs boshsys.FileSystem, stripVolumeRegex string, ) DevicePathResolver
func NewIdentityDevicePathResolver ¶
func NewIdentityDevicePathResolver() DevicePathResolver
func NewIscsiDevicePathResolver ¶
func NewIscsiDevicePathResolver( diskWaitTimeout time.Duration, runner boshsys.CmdRunner, openiscsi boshopeniscsi.OpenIscsi, fs boshsys.FileSystem, dirProvider boshdirs.Provider, logger boshlog.Logger, ) DevicePathResolver
func NewMappedDevicePathResolver ¶
func NewMappedDevicePathResolver( diskWaitTimeout time.Duration, fs boshsys.FileSystem, ) DevicePathResolver
func NewMultipathDevicePathResolver ¶
func NewMultipathDevicePathResolver( idDevicePathResolver DevicePathResolver, iscsiDevicePathResolver DevicePathResolver, logger boshlog.Logger, ) DevicePathResolver
func NewScsiDevicePathResolver ¶
func NewScsiDevicePathResolver( scsiVolumeIDPathResolver DevicePathResolver, scsiIDPathResolver DevicePathResolver, scsiLunPathResolver DevicePathResolver, ) DevicePathResolver
func NewVirtioDevicePathResolver ¶
func NewVirtioDevicePathResolver( idDevicePathResolver DevicePathResolver, mappedDevicePathResolver DevicePathResolver, logger boshlog.Logger, ) DevicePathResolver
type SCSIIDDevicePathResolver ¶
type SCSIIDDevicePathResolver struct {
// contains filtered or unexported fields
}
SCSIIDDevicePathResolver resolves device path by performing a SCSI rescan then looking under "/dev/disk/by-id/*uuid" where "uuid" is the cloud ID of the disk
func NewSCSIIDDevicePathResolver ¶
func NewSCSIIDDevicePathResolver( diskWaitTimeout time.Duration, fs boshsys.FileSystem, logger boshlog.Logger, ) SCSIIDDevicePathResolver
func (SCSIIDDevicePathResolver) GetRealDevicePath ¶
func (idpr SCSIIDDevicePathResolver) GetRealDevicePath(diskSettings boshsettings.DiskSettings) (string, bool, error)
type SCSILunDevicePathResolver ¶
type SCSILunDevicePathResolver struct {
// contains filtered or unexported fields
}
func NewSCSILunDevicePathResolver ¶
func NewSCSILunDevicePathResolver( diskWaitTimeout time.Duration, fs boshsys.FileSystem, logger boshlog.Logger, ) SCSILunDevicePathResolver
func (SCSILunDevicePathResolver) GetRealDevicePath ¶
func (ldpr SCSILunDevicePathResolver) GetRealDevicePath(diskSettings boshsettings.DiskSettings) (string, bool, error)
type SCSIVolumeIDDevicePathResolver ¶
type SCSIVolumeIDDevicePathResolver struct {
// contains filtered or unexported fields
}
func NewSCSIVolumeIDDevicePathResolver ¶
func NewSCSIVolumeIDDevicePathResolver( diskWaitTimeout time.Duration, fs boshsys.FileSystem, ) SCSIVolumeIDDevicePathResolver
func (SCSIVolumeIDDevicePathResolver) GetRealDevicePath ¶
func (devicePathResolver SCSIVolumeIDDevicePathResolver) GetRealDevicePath(diskSettings boshsettings.DiskSettings) (string, bool, error)
Source Files ¶
- device_path_resolver.go
- id_device_path_resolver.go
- identity_device_path_resolver.go
- iscsi_device_path_resolver.go
- mapped_device_path_resolver.go
- multipath_tool_device_path_resolver.go
- scsi_device_path_resolver.go
- scsi_id_device_path_resolver.go
- scsi_lun_device_path_resolver.go
- scsi_volume_id_device_path_resolver.go
- virtio_device_path_resolver.go
Click to show internal directories.
Click to hide internal directories.