package
1.6.1
Repository: https://github.com/dell/csi-isilon.git
Documentation: pkg.go.dev

# Functions

CombineTwoStrings combines two string variables isolated by defined sign.
GetAccessMode extracts the access mode from the given *csi.ControllerPublishVolumeRequest instance.
GetExportIDFromConflictMessage returns the export id of the export which is creating or just created when there occurs a conflict.
GetFQDNByIP returns the FQDN based on the parsed ip address.
GetIsiPathFromExportPath returns isiPath based on the export path.
GetLogger function to get custom logging.
GetMessageWithRunID returns message with runID information.
GetNewUUID generates a UUID.
GetNormalizedSnapshotID combines snapshotID ID and cluster name to form the normalized snapshot ID e.g.
GetNormalizedVolumeID combines volume name (i.e.
GetOwnFQDN returns the FQDN of the node or controller itself.
GetPathForVolume gets the volume full path by the combination of isiPath and volumeName.
GetQuotaIDFromDescription extracts quota id from the description field of export.
GetQuotaIDWithCSITag formats a given quota id with the CSI tag, e.g.
GetRunIDLogger returns the current runID logger.
GetVolumeNameFromExportPath returns volume name based on the export path.
IsStringInSlice checks if a string is an element of a string slice.
IsStringInSlices checks if a string is an element of a any of the string slices.
LogMap logs the key-value entries of a given map.
ParseArrayFromContext parses an environment variable into an array of string.
ParseBooleanFromContext parses an environment variable into a boolean value.
ParseInt64FromContext parses an environment variable into an int64 value.
ParseLogLevel returns the logrus.Level of input log level string.
ParseNodeID parses NodeID to node name, node FQDN and IP address using pattern '^(.+)=#=#=(.+)=#=#=(.+)'.
ParseNormalizedSnapshotID parses the normalized snapshot ID(using SnapshotIDSeparator) to extract the snapshot ID and cluster name(optional) that make up the normalized snapshot ID e.g.
ParseNormalizedVolumeID parses the volume ID(using VolumeIDSeparator) to extract the volume name, export ID, access zone and cluster name(optional) that make up the volume ID e.g.
ParseUintFromContext parses an environment variable into a uint value.
RemoveExistingCSISockFile When the sock file that the gRPC server is going to be listening on already exists, error will be thrown saying the address is already in use, thus remove it first.
RemoveStringFromSlice returns a slice that is a copy of the input "list" slice with the input "str" string removed.
RemoveStringsFromSlice generates a slice that is a copy of the input "list" slice with elements from the input "strs" slice removed.
RemoveSurroundingQuotes removes the surrounding double quotes of a given string (if there are no surrounding quotes, do nothing).
UpdateLogLevel updates the log level.

# Constants

Constants used for logging.
Constants used for logging.
Constants used for logging.
Constants used for logging.
Constants used for logging.

# Variables

CSIQuotaIDPrefix is the CSI tag for quota id stored in the export's description field set by csi driver.
DummyHostNodeID is nodeID used for adding dummy client in client field of export.
ExportConflictMessagePattern is the regex pattern that identifies the error message of export conflict.
NodeIDPattern is the regex pattern that identifies the NodeID.
NodeIDSeparator is the separator that separates node name and IP Address.
QuotaIDPattern the regex pattern that identifies the quota id set in the export's description field set by csi driver.
SnapshotIDSeparator is the separator that separates snapshot id and cluster name (two components that a normalized snapshot ID is comprised of).
VolumeIDPattern is the regex pattern that identifies the quota id set in the export's description field set by csi driver.
VolumeIDSeparator is the separator that separates volume name and export ID (two components that a normalized volume ID is comprised of).

# Structs

Formatter implements logrus.Formatter interface.