Documentation ¶
Index ¶
- Constants
- Variables
- func CheckValidVolume(cStorVolume *apis.CStorVolume) error
- func CreateIstgtConf(cStorVolume *apis.CStorVolume) ([]byte, error)
- func CreateVolumeTarget(cStorVolume *apis.CStorVolume) error
- func GetVolumeStatus(cStorVolume *apis.CStorVolume) (*apis.CVStatus, error)
- func ResizeTargetVolume(cStorVolume *apis.CStorVolume) error
Constants ¶
View Source
const (
VolumeOperator = "iscsi"
)
VolumeOperator is the name of the tool that makes volume-related operations.
Variables ¶
View Source
var FileOperatorVar util.FileOperator
FileOperatorVar is used for doing File Operations
View Source
var UnixSockVar util.UnixSock
UnixSockVar is used for communication through Unix Socket
Functions ¶
func CheckValidVolume ¶
func CheckValidVolume(cStorVolume *apis.CStorVolume) error
CheckValidVolume checks for validity of CStorVolume resource.
func CreateIstgtConf ¶
func CreateIstgtConf(cStorVolume *apis.CStorVolume) ([]byte, error)
CreateIstgtConf creates istgt.conf file
func CreateVolumeTarget ¶
func CreateVolumeTarget(cStorVolume *apis.CStorVolume) error
CreateVolumeTarget creates a new cStor volume istgt config.
func GetVolumeStatus ¶
func GetVolumeStatus(cStorVolume *apis.CStorVolume) (*apis.CVStatus, error)
GetVolumeStatus retrieves an array of replica statuses.
func ResizeTargetVolume ¶
func ResizeTargetVolume(cStorVolume *apis.CStorVolume) error
ResizeTargetVolume sends resize volume command to istgt and get the response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.