iscsi

package
v1.10.0-beta.1 Latest Latest
Warning

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

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

Documentation

Overview

Package iscsi contains the internal representation of Internet Small Computer System Interface (iSCSI) volumes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProbeVolumePlugins

func ProbeVolumePlugins() []volume.VolumePlugin

This is the primary entrypoint for volume plugins.

Types

type GlobFunc added in v1.2.0

type GlobFunc func(string) ([]string, error)

type ISCSIUtil

type ISCSIUtil struct{}

func (*ISCSIUtil) AttachDisk

func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error)

AttachDisk returns devicePath of volume if attach succeeded otherwise returns error

func (*ISCSIUtil) DetachBlockISCSIDisk added in v1.10.0

func (util *ISCSIUtil) DetachBlockISCSIDisk(c iscsiDiskUnmapper, mapPath string) error

DetachBlockISCSIDisk removes loopback device for a volume and detaches a volume from node

func (*ISCSIUtil) DetachDisk

func (util *ISCSIUtil) DetachDisk(c iscsiDiskUnmounter, mntPath string) error

DetachDisk unmounts and detaches a volume from node

func (*ISCSIUtil) MakeGlobalPDName

func (util *ISCSIUtil) MakeGlobalPDName(iscsi iscsiDisk) string

MakeGlobalPDName returns path of global plugin dir

func (*ISCSIUtil) MakeGlobalVDPDName added in v1.10.0

func (util *ISCSIUtil) MakeGlobalVDPDName(iscsi iscsiDisk) string

MakeGlobalVDPDName returns path of global volume device plugin dir

type StatFunc added in v1.2.0

type StatFunc func(string) (os.FileInfo, error)

stat a path, if not exists, retry maxRetries times when iscsi transports other than default are used, use glob instead as pci id of device is unknown

Jump to

Keyboard shortcuts

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