volume

package
v0.0.0-...-a88c85e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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