Versions in this module Expand all Collapse all v0 v0.0.2 Nov 10, 2022 v0.0.1 Feb 21, 2020 Changes in this version + const Darwin + const Linux + const Windows + func AttachISCSIVolume(name, mountpoint string, publishInfo *VolumePublishInfo) error + func AttachNFSVolume(name, mountpoint string, publishInfo *VolumePublishInfo) error + func ConsistentRead(filename string, attempts int) ([]byte, error) + func ConvertSizeToBytes(s string) (string, error) + func DeleteResourceAtPath(resource string) error + func EnsureDirExists(path string) error + func EnsureFileExists(path string) error + func EnsureISCSISession(hostDataIP string) error + func EnsureISCSISessions(hostDataIPs []string) error + func ExpandISCSIFilesystem(publishInfo *VolumePublishInfo, stagedTargetPath string) (int64, error) + func GetDeviceNameFromMount(mountpath string) (string, int, error) + func GetInitiatorIqns() ([]string, error) + func GetV(opts map[string]string, keys string, defaultValue string) string + func GetVolumeSizeBytes(opts map[string]string, defaultVolumeSize string) (uint64, error) + func ISCSIDisableDelete(targetIQN, targetPortal string) error + func ISCSIRescanDevices(targetIQN string, lunID int32, minSize int64) error + func ISCSISupported() bool + func ISCSITargetHasMountedDevice(targetIQN string) (bool, error) + func IsAlreadyAttached(lunID int, targetIqn string) bool + func IsLikelyDir(mountpoint string) (bool, error) + func IsLikelyNotMountPoint(mountpoint string) (bool, error) + func IsMounted(sourceDevice, mountpoint string) (bool, error) + func Lock(ctx, lockID string) + func LogHTTPRequest(request *http.Request, requestBody []byte) + func LogHTTPResponse(response *http.Response, responseBody []byte) + func MountDevice(device, mountpoint, options string, isMountPointFile bool) (err error) + func PathExists(path string) bool + func Pow(x int64, y int) int64 + func PrepareDeviceAtMountPathForRemoval(mountpoint string, unmount bool) error + func PrepareDeviceForRemoval(lunID int, iSCSINodeName string) + func RandomString(strSize int) string + func RemoveStringFromSlice(slice []string, s string) (result []string) + func SliceContainsString(slice []string, s string) bool + func StringInSlice(s string, list []string) bool + func Umount(mountpoint string) (err error) + func UmountAndRemoveTemporaryMountPoint(mountPath string) error + func Unlock(ctx, lockID string) + func VolumeSizeWithinTolerance(requestedSize int64, currentSize int64, delta int64) (bool, error) + type CertInfo struct + CACert string + CAKey string + ClientCert string + ClientKey string + ServerCert string + ServerKey string + func MakeHTTPCertInfo(caCertName, serverCertName, clientCertName string) (*CertInfo, error) + type DFInfo struct + Source string + Target string + func GetDFOutput() ([]DFInfo, error) + type HTTPError struct + Status string + StatusCode int + func NewHTTPError(response *http.Response) *HTTPError + func (e HTTPError) Error() string + type ISCSIDiscoveryInfo struct + Portal string + PortalIP string + TargetName string + type ISCSISessionInfo struct + Portal string + PortalIP string + SID string + TargetName string + type IscsiAccessInfo struct + IscsiIgroup string + IscsiInitiatorSecret string + IscsiInterface string + IscsiLunNumber int32 + IscsiPortals []string + IscsiTargetIQN string + IscsiTargetPortal string + IscsiTargetSecret string + IscsiUsername string + IscsiVAGs []int64 + type MountInfo struct + DeviceId string + FsType string + MountId int + MountOptions []string + MountPoint string + MountSource string + ParentId int + Root string + SuperOptions []string + type MountPoint struct + Device string + Freq int + Opts []string + Pass int + Path string + Type string + type NfsAccessInfo struct + NfsPath string + NfsServerIP string + type Node struct + IPs []string + IQN string + Name string + type ScsiDeviceInfo struct + Channel string + Devices []string + Filesystem string + Host string + HostSessionMap map[int]int + IQN string + LUN string + MultipathDevice string + Target string + func GetISCSIDevices() ([]*ScsiDeviceInfo, error) + func GetMountedISCSIDevices() ([]*ScsiDeviceInfo, error) + type Version struct + func MustParseDate(str string) *Version + func MustParseGeneric(str string) *Version + func MustParseSemantic(str string) *Version + func ParseDate(str string) (*Version, error) + func ParseGeneric(str string) (*Version, error) + func ParseSemantic(str string) (*Version, error) + func (v *Version) AtLeast(min *Version) bool + func (v *Version) BuildMetadata() string + func (v *Version) Compare(other string) (int, error) + func (v *Version) GreaterThan(other *Version) bool + func (v *Version) LessThan(other *Version) bool + func (v *Version) MajorVersion() uint + func (v *Version) MajorVersionString() string + func (v *Version) MinorVersion() uint + func (v *Version) MinorVersionString() string + func (v *Version) PatchVersion() uint + func (v *Version) PreRelease() string + func (v *Version) ShortString() string + func (v *Version) String() string + func (v *Version) ToMajorMinorString() string + func (v *Version) ToMajorMinorVersion() *Version + type VolumeAccessInfo struct + MountOptions string + type VolumePublishInfo struct + DevicePath string + FilesystemType string + HostIP []string + HostIQN []string + HostName string + Localhost bool + SharedTarget bool + UseCHAP bool + type VolumeTrackingPublishInfo struct + StagingTargetPath string